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

IncompatibleClassChangeError #46

Open
helengray opened this issue Jun 14, 2024 · 6 comments
Open

IncompatibleClassChangeError #46

helengray opened this issue Jun 14, 2024 · 6 comments

Comments

@helengray
Copy link
Contributor

项目是Androidx的,加固后抛异常
java.lang.IncompatibleClassChangeError: Class androidx.activity.ComponentActivity implements non-interface class b.a (declaration of 'androidx.activity.ComponentActivity' appears in /data/user/0/<package_name>/code_cache/i11111i111.zip)

@helengray
Copy link
Contributor Author

helengray commented Jun 14, 2024

完整堆栈

java.lang.IncompatibleClassChangeError: Class androidx.activity.ComponentActivity implements non-interface class b.a (declaration of 'androidx.activity.ComponentActivity' appears in /data/user/0/<package_name>/code_cache/i11111i111.zip) at java.lang.Class.newInstance(Native Method) at wc.b.a(SourceFile:11) at <package_name>.ComApplication.onCreate(SourceFile:125) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1266) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7336) at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2382) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:223) at android.os.Looper.loop(Looper.java:324) at android.app.ActivityThread.main(ActivityThread.java:8558) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1061)

@luoyesiqiu
Copy link
Owner

必现吗?看堆栈怎么没有ProxyApplication

@helengray
Copy link
Contributor Author

必现,应该是已经在执行目标Application了

@blackandwhiteforzj
Copy link

必现,应该是已经在执行目标Application了

加固前的apk发一下

@helengray
Copy link
Contributor Author

必现,应该是已经在执行目标Application了

加固前的apk发一下

app-release.zip

@luoyesiqiu
Copy link
Owner

这边试了一下,是可以起来的

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