Home > front end >  android.content.res.Resources$NotFoundException: Drawable compat_splash_screen_no_icon_background wi
android.content.res.Resources$NotFoundException: Drawable compat_splash_screen_no_icon_background wi

Time:06-24

I am getting this issue only for samsung galaxy devices- Galaxy Tab A, Galaxy A03 Core, Galaxy A02

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.application/com.myapp.application.ui.MainActivity}: android.content.res.Resources$NotFoundException: Drawable com.app.application:drawable/compat_splash_screen_no_icon_background with resource ID #0x7f0801b6

enter image description here

CodePudding user response:

Try to rename the resource file. Looks like it interferes with some of Samsung's resource files and you have such runtime error.

CodePudding user response:

This is currently an issue. You will have to wait a bit for the fix to ship, then update the core-splashscreen dependency to the latest version.

It is tracked here https://issuetracker.google.com/issues/229645249 See if the call order they suggest there helps you mitigate the problem.

CodePudding user response:

The background must be a color value, drawables are not supported (at least for now). You can review the example in docs (https://developer.android.com/guide/topics/ui/splash-screen)

working example:

<item name="windowSplashScreenBackground">@color/colorPrimary</item>
  • Related