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

Resources$NotFoundException #117

Open
javalue opened this issue Apr 13, 2022 · 4 comments
Open

Resources$NotFoundException #117

javalue opened this issue Apr 13, 2022 · 4 comments

Comments

@javalue
Copy link

javalue commented Apr 13, 2022

when i add com.google.android.play:core:1.10.3,i lanuch app happened this crash.
but it happened in release apk,the debug apk is ok.

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aaa/com.aaa.SplashActivity}: android.content.res.Resources$NotFoundException: Drawable com.aaa:drawable/abc_vector_test with resource ID #0x7f080054
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2904)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2986)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1671)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:206)
at android.app.ActivityThread.main(ActivityThread.java:6784)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:852)

@javalue
Copy link
Author

javalue commented Apr 13, 2022

testing all day
i have found res in apk is very small,normal like 2-3mb, but now is 500kb
in my test,
when i set shrinkResources = false,it's ok

@javalue
Copy link
Author

javalue commented Apr 13, 2022

build/generate signed apk/.... it will crash
gradle/android/tasks/install/installRelease..... it will ok

@Dheeraj-tb
Copy link

@javalue any luck?

@digitalillusion
Copy link

I had minifyEnabled true in release target and this produced NotFoundExceptions

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