1. 程式人生 > >gradle方式集成融雲sdk dlopen failed: library "libsqlite.so" not found

gradle方式集成融雲sdk dlopen failed: library "libsqlite.so" not found

gradle cdi support 1.0 ide 需要 1.3 set main

1.gradle

    implementation ‘cn.rongcloud.android:IMLib:2.8.6‘
    implementation ‘cn.rongcloud.android:IMKit:2.8.6‘
    implementation ‘cn.rongcloud.android:CallLib:2.8.6‘
    implementation ‘cn.rongcloud.android:CallKit:2.8.6‘

還需要,開啟

multiDexEnabled true

    api ‘com.android.support:multidex:1.0.1‘
    api ‘com.huawei.android.hms:push:2.6.1.301‘

2.編譯報錯dlopen failed: library "libsqlite.so" not found

技術分享圖片

去demo裏拷一份(libs或者jniLibs)

//libs
gradle
android {
sourceSets {
        main {
            jni.srcDirs = []
            jniLibs.srcDirs = [‘libs‘]
        }
    }
}

3.添加其他配置

https://www.rongcloud.cn/docs/android.html#integration_config

gradle方式集成融雲sdk dlopen failed: library "libsqlite.so" not found