YSDK的巨坑!登录没有回调或couldn't find "libYSDK.so"

错误日志

2020-02-27 10:51:41.654 28610-28610/com.tencent.tmgp.gzbg.xxx W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/user/0/com.tencent.tmgp.gzbg.xxx/app_dex/ysdk_hackdex.jar", dex file "InMemoryDexFile[cookie=[0, 499767118144]]", zip file "/data/app/com.tencent.tmgp.gzbg.xxx-98ts8uzk9VmYmTREoTrktQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.tencent.tmgp.gzbg.xxx-98ts8uzk9VmYmTREoTrktQ==/lib/arm64, /data/app/com.tencent.tmgp.gzbg.xxx-98ts8uzk9VmYmTREoTrktQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64, /hw_product/lib64, /system/product/lib64]]] couldn't find "libYSDK.so"

如果出现以上类似的错误日志,或者没有回调,那么你一定要试下以下方法!!!!!

解决方法:

targetSdkVersion <= 28
并且
defaultConfig {
...
      ndk { abiFilters "armeabi" }
...
}

顺便吐槽下:ysdk官方文档真的lj!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

你可能感兴趣的:(YSDK的巨坑!登录没有回调或couldn't find "libYSDK.so")