app-bundle-samples icon indicating copy to clipboard operation
app-bundle-samples copied to clipboard

Resources$NotFoundException

Open javalue opened this issue 2 years ago • 4 comments

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 avatar Apr 13 '22 03:04 javalue

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 avatar Apr 13 '22 08:04 javalue

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

javalue avatar Apr 13 '22 08:04 javalue

@javalue any luck?

Dheeraj-tb avatar Jun 01 '22 19:06 Dheeraj-tb

I had minifyEnabled true in release target and this produced NotFoundExceptions

digitalillusion avatar Feb 25 '24 11:02 digitalillusion