alibaba / alibaba/AndFix

loadLibrary

Open
#197 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

java.lang.UnsatisfiedLinkError: Couldn't load andfix from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.test-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.test-1, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.Runtime.loadLibrary(Runtime.java:348)
at com.alipay.euler.andfix.AndFix.(AndFix.java:37)
at com.alipay.euler.andfix.Compat.isSupport(Compat.java:45)
at com.alipay.euler.andfix.AndFixManager.(AndFixManager.java:74)
at com.alipay.euler.andfix.patch.PatchManager.(PatchManager.java:78)
at com.test.app.MainApplication.initAndFix(MainApplication.java:35)
at com.test.app.MainApplication.onCreate(MainApplication.java:26)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4889)
at android.app.ActivityThread.access$1600(ActivityThread.java:174)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5752)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)

由于项目加了JPush。会需要导入一些so包。是因为这个才导致出现这个问题的么?之前试过一次。没有出现这个原因的。这次重新尝试AndFix,一运行就这样了。请问如何处理?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the stack trace through AndFix.java, Compat.java, AndFixManager.java, PatchManager.java, and MainApplication.java, then inspect how the native library is packaged alongside the JPush .so files. Reproduce the startup failure and determine whether the JPush native libraries cause the missing `andfix` library; done means identifying a confirmed cause and a working startup configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.