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

When I apply obfuscat, ClassCastException #4410

Open
Juro-hub opened this issue Aug 26, 2024 · 0 comments
Open

When I apply obfuscat, ClassCastException #4410

Juro-hub opened this issue Aug 26, 2024 · 0 comments

Comments

@Juro-hub
Copy link

When I apply obfuscat, I was able to check the following error.

What should I do?

java.lang.RuntimeException: Unable to create application kr.co.test.TestApplication: java.lang.ClassCastException: kr.co.test.DaggerTestApplication_HiltComponents_SingletonC$SingletonCImpl cannot be cast to kr.co.test.TestApplication_GeneratedInjector
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7672)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2410)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Caused by: java.lang.ClassCastException: kr.co.test.DaggerTestApplication_HiltComponents_SingletonC$SingletonCImpl cannot be cast to kr.co.test.TestApplication_GeneratedInjector

I Already use simple_config like this

<class template="class kr.co.test.TestApplication" >
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

1 participant