Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.3.0 couldn't find "libduktape.so" #122

Closed
zdongcoding opened this issue Dec 13, 2018 · 5 comments
Closed

v1.3.0 couldn't find "libduktape.so" #122

zdongcoding opened this issue Dec 13, 2018 · 5 comments

Comments

@zdongcoding
Copy link

1.3.0

@JakeWharton
Copy link
Member

This isn't really enough information to diagnose a problem. Can you supply a sample that reproduces the problem that we can take a look at?

@zdongcoding
Copy link
Author

main module : implementation 'com.squareup.duktape:duktape-android:1.3.0'

E/CrashReport: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.xxx.xxxx-WlF14NuE724xe_RyYv5Jqw==/base.apk"],nativeLibraryDirectories=[/data/app/com.xxx.xxxx-WlF14NuE724xe_RyYv5Jqw==/lib/arm, /data/app/com.xxx.xxxx-WlF14NuE724xe_RyYv5Jqw==/base.apk!/lib/armeabi, /system/lib, /vendor/lib, /product/lib]]] couldn't find "libduktape.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
at java.lang.System.loadLibrary(System.java:1660)
at com.squareup.duktape.Duktape.(Duktape.java:28)
at com.squareup.duktape.Duktape.create(Duktape.java:36)
at android.app.Activity.performDestroy(Activity.java:7604)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1253)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5033)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5065)
at android.app.ActivityThread.-wrap6(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1955)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)

@zdongcoding
Copy link
Author

zdongcoding commented Dec 14, 2018

This isn't really enough information to diagnose a problem. Can you supply a sample that reproduces the problem that we can take a look at?

v1.2.0 is no problem

Duktape -android does not contain armeabi so only armeabi-v7a... ..

@zdongcoding zdongcoding reopened this Dec 14, 2018
@vaigunth
Copy link

+1

I'm facing the same error in OnePlus 6 on app start.
Android version 9.0.

Fatal Exception: java.lang.UnsatisfiedLinkError
dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/in.zeta.android-_EMQ_0yW6IrN8iZRxGw3Ug==/base.apk"],nativeLibraryDirectories=[/data/app/x.x.x-_EMQ_0yW6IrN8iZRxGw3Ug==/lib/arm64, /data/app/x.x.x-_EMQ_0yW6IrN8iZRxGw3Ug==/base.apk!/lib/arm64-v8a, /system/lib64]]] couldn't find "libduktape.so"

@JakeWharton
Copy link
Member

NDK 17 removed our ability to even build for armeabi:

Note: Historically the NDK supported ARMv5 (armeabi), and 32-bit and 64-bit MIPS, but support for these ABIs was removed in NDK r17.

@vaigunth we build for arm64-v8a so if you get an unsatisfied link error then the libraries probably failed to extract. That is tracked by #28.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants