question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android App crashes on Open: SplashScreen.hide()

See original GitHub issue

Possibly 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:open
  • Created 6 years ago
  • Reactions:3
  • Comments:14

github_iconTop GitHub Comments

7reactions
hnliyuancommented, Nov 28, 2018

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

3reactions
ntnamagcommented, Jun 29, 2018

You try remove: <item name="android:windowIsTranslucent">true</item> in android/app/src/main/res/values/styles.xml

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found