0.3.1跑Demo可以跑起来,跑自己的项目直接crash
- Dominant language
- C++
- Stars
- 7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
在Application的oncreate里面执行mPatchManager = new PatchManager(this); 直接crash..
自己的项目调用了很多第三方的库....
日志:
``` java
java.lang.UnsatisfiedLinkError: Couldn't load andfix from loader dalvik.system.PathClassLoader
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)
```
`No implementation found for native Lcom/alipay/euler/andfix/AndFix;.setup:(ZI)Z`
还有
``` java
java.lang.UnsatisfiedLinkError: Native method not found: com.alipay.euler.andfix.AndFix.setup:(ZI)Z
at com.alipay.euler.andfix.AndFix.setup(Native Method)
at com.alipay.euler.andfix.AndFix.setup(AndFix.java:113)
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)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with Application.onCreate and follow the reported stack through PatchManager, AndFixManager, Compat.isSupport, and AndFix.setup. Reproduce the crash in the user's project and compare native library loading with the Demo; done means PatchManager initializes without either UnsatisfiedLinkError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100