我根據這邊的方法一做更新套件
https://cloud.tencent.com/document/product/269/32679
想從com.tencent.imsdk:imsdk:4.4.479' 更新到4.9.1
但改版本號sync 一跑起來就crash了
2020-08-14 18:42:24.110 14794-14794/com.baulong.phonelive E/CrashReport: java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.tencent.liteav.basic.util.TXCCommonUtil.nativeGetSDKVersion() (tried Java_com_tencent_liteav_basic_util_TXCCommonUtil_nativeGetSDKVersion and Java_com_tencent_liteav_basic_util_TXCCommonUtil_nativeGetSDKVersion__)
at com.tencent.liteav.basic.util.TXCCommonUtil.nativeGetSDKVersion(Native Method)
at com.tencent.liteav.basic.util.TXCCommonUtil.getSDKVersionStr(TXCCommonUtil.java:55)
at com.tencent.rtmp.TXLiveBase.getSDKVersionStr(TXLiveBase.java:177)
我那個module的gradle apply plugin: 'com.android.library' android { compileSdkVersion rootProject.ext.android.compileSdkVersion buildToolsVersion rootProject.ext.android.buildToolsVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode rootProject.ext.android.versionCode versionName rootProject.ext.android.versionName manifestPlaceholders = rootProject.ext.manifestPlaceholders ndk { abiFilters "armeabi-v7a", "arm64-v8a" } javaCompileOptions { annotationProcessorOptions { arguments = [AROUTER_MODULE_NAME: project.getName()] } } } buildFeatures { viewBinding true } buildTypes { debug { ext.alwaysUpdateBuildId = false } release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } aaptOptions { cruncherEnabled = false useNewCruncher = false } } repositories { flatDir { dirs 'libs', '../libs' } } dependencies { implementation 'androidx.constraintlayout:constraintlayout:1.1.3' compile fileTree(include: ['*.jar'], dir: 'libs') testImplementation 'junit:junit:4.12' //common compile project(':common') //腾讯IM implementation('com.tencent.imsdk:imsdk:4.4.479') annotationProcessor rootProject.ext.dependencies["arouter-compiler"] implementation 'com.github.cfw1992:SoundPlayer:1.0.0' }
相似问题