Android App crashes on Open: SplashScreen.hide()
See original GitHub issuePossibly similar to #167, but instead of crashing on open
, this crashes on hide
, and only in Android 4.4.x:
E/AndroidRuntime( 1605): FATAL EXCEPTION: main
E/AndroidRuntime( 1605): Process: com.kickserv.kickserv, PID: 1605
E/AndroidRuntime( 1605): java.lang.NoClassDefFoundError: org.devio.rn.splashscreen.SplashScreen
E/AndroidRuntime( 1605): at com.kickserv.kickserv.MainActivity.onCreate(MainActivity.java:32)
E/AndroidRuntime( 1605): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 1605): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 1605): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
E/AndroidRuntime( 1605): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
E/AndroidRuntime( 1605): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 1605): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 1605): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1605): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 1605): at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime( 1605): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1605): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1605): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime( 1605): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime( 1605): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 564): Force finishing activity com.kickserv.kickserv/.MainActivity
This is with SDK version 25
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:14
Top Results From Across the Web
Android App crashes after splash screen - Stack Overflow
The error in your log was saying it was caused by: IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this ......
Read more >Migrate your existing splash screen implementation to Android ...
If your existing splash screen is implemented using a dedicated Activity , launching your app on devices running Android 12 or higher results...
Read more >Building a splash screen in React Native - LogRocket Blog
Learn how to build a splash screen in React Native for both iOS and Android apps, and edit its features, like background color....
Read more >New Splashscreen crashes Android 9 - Issue Tracker
Create splash screen theme in styles.xml - Add style to main/launch activity - Add installSplashScreen() to said activity - Run on Android 9...
Read more >Attempt to add splash screen crashes app and results in two ...
I remove the code from the manifest and the app runs fine, just no splash screen. Also, I get TWO launch icons on...
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 FreeTop 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
Top GitHub Comments
Fixed it:
added multiDexEnabled true in the defaultConfig of the build.gradle and compile ‘com.android.support:multidex:1.0.3’ added import android.support.multidex.MultiDex; and MultiDex.install(this); on the onCreate of the MainApplication.java
You try remove:
<item name="android:windowIsTranslucent">true</item>
inandroid/app/src/main/res/values/styles.xml