尝试使用JNI文件(lib-native.so本机库)导入android库(.aar)时出现此错误。
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.cryogeneye.test-1/base.apk"],nativeLibraryDirectories=[/data/app/com.cryogeneye.test-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libnative-lib.so"
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.cryogeneye.test-1/base.apk"],nativeLibraryDirectories=[/data/app/com.cryogeneye.test-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libnative-lib.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:988)
at android.example.com.arsdkdevop.TrillCoreSDK.<clinit>(TrillCoreSDK.java:123)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:309)
at java.lang.Class.forName(Class.java:273)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.c(Unknown Source)
at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknow
虽然同一个库(.aar)在新的android项目上工作正常。
我的目标是在Unity Project中导入包含JNI文件(.so)的android库(.aar)。