无法初始化位于我的libs文件夹中的* .so文件。在logcat中显示Permission Denied错误。
错误:
E/art (17495): dlopen("/data/data/XXXXX/files/libs/XXXX.so", RTLD_LAZY) failed: dlopen failed: couldn't map "/data/data/XXXXX/files/libs/XXXX.so" segment 2: Permission denied
E/NativeLoader(17495): java.lang.UnsatisfiedLinkError: dlopen failed: couldn't map "/data/data/XXXX/files/libs/XXXX.so" segment 2: Permission denied
E/NativeLoader(17495): at XXXX$1.run(XXXXX.java:65)
E/XX (17495): Thread-794|E|AP|[XXXXX][uncaughtException] Uncaught UnsatisfiedLinkError: No implementation found for int XXXX.engine.JNIEngine.initClass(java.lang.Object, int) (tried XXXXX_JNIEngine_initClass and XXXX_JNIEngine_initClass__Ljava_lang_Object_2I).|java.lang.UnsatisfiedLinkError: No implementation found for int XXXXX.JNIEngine.initClass(java.lang.Object, int) (tried XXXX_JNIEngine_initClass and XXXX_JNIEngine_initClass__Ljava_lang_Object_2I)
请为此建议任何解决方案。
提前致谢。
答案 0 :(得分:0)
我最近偶然发现了同样的问题。为您的android.bundle.enableUncompressedNativeLibs=false
启用gradle.properties
可能会解决此问题。
在这里找到答案:https://github.com/algolia/algoliasearch-client-android/issues/576#issuecomment-494148605