android / android/app-bundle-samples

Resources$NotFoundException

Open
#117 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
735
Forks
348
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the crash from SplashActivity with com.google.android.play:core:1.10.3, comparing the release and debug APKs. Inspect the reported Resources$NotFoundException for drawable/abc_vector_test. Done means the release APK launches without the exception and the cause and verification are recorded.

Written by the indexing model from the issue text.

Assessment

Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.