Generating splash screen on Android causes crash due to launch_screen_bitmap.xml syntax
See original GitHub issueMy apologies for not having the stack trace, I was doing this on my other computer which isn’t available at the moment.
Generating splash screens for Android resulted in the app crashing on launch, I was able to fix it by changing the second line in android/app/src/main/res/drawable/launch_screen_bitmap.xml from:
<item android:drawable="@color/splashBackground"/>
to the following:
<item android:drawable="@android:color/darker_gray"/>
I’m incredibly new to Android development so not sure why or how that fixed things 😃
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:20 (7 by maintainers)
Top Results From Across the Web
Android splash screen keeps crashing on some devices only
I add splash screen to the app with code from this site as follows: creating drawable file for splash; creating theme in styles...
Read more >Attempt to add splash screen crashes app and results in two ...
With the splash screen code line in the manifest file (<category android:name="android.intent.category.LAUNCHER" />) uncommeted, the app crashes and I have TWO ...
Read more >Splash screens - Android Developers
The elements of the splash screen are defined by XML resource files in the Android Manifest. There are light and dark mode versions...
Read more >Splash Screen in Android - ProAndroidDev
Step 1. Create a splash screen background in drawable/splash background.xml using the desired image as a bitmap.
Read more >New Splashscreen crashes Android 9 - Issue Tracker - Google
The new androidx.core:core-splashscreen:1.0.0-alpha02 is crashing android 9 devices ... Create splash screen theme in styles.xml ... Caused by: android.os.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I had the same issue.
Android 7.1.1
Here was the stack trace
I was able to fix it by changing colors.xml from
to
Same issue. I changed manually colors.xml. Value of item was empty, only with a ‘#’ character. I changed by #000 then app runs again.