On android the app works in debug mode and also if i run
react-native run-android --variant=release
but when i generate a signed apk, the app gets stuck on the splash screen.
lInk to stack overflow issue :here
Error/warning logs as found via android studio logcat.
Rejecting re-init on previously-failed class java.lang.Class
: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
2019-04-15 08:19:34.112 16886-16886/com.example I/zygote: at void android.support.v4.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, android.support.v4.view.OnApplyWindowInsetsListener) (ViewCompat.java:2203)
2019-04-15 08:19:34.112 16886-16886/com.example I/zygote: at android.view.ViewGroup android.support.v7.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:637)
2019-04-15 08:19:34.112 16886-16886/com.example I/zygote: at void android.support.v7.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
2019-04-15 08:19:34.112 16886-16886/com.example I/zygote: at void android.support.v7.app.AppCompatDelegateImpl.setContentView(android.view.View) (AppCompatDelegateImpl.java:457)
2019-04-15 08:19:34.112 16886-16886/com.example I/zygote: at void android.support.v7.app.AppCompatActivity.setContentView(android.view.View) (AppCompatActivity.java:145)
2019-04-15 08:19:34.112 16886-16886/com.example I/zygote: at void com.reactnativenavigation.NavigationActivity.addDefaultSplashLayout() (NavigationActivity.java:130)
2019-04-15 08:19:34.112 16886-16886/com.example I/zygote: at void com.reactnativenavigation.NavigationActivity.onCreate(android.os.Bundle) (NavigationActivity.java:35)
2019-04-15 08:19:34.112 16886-16886/com.example I/zygote: at void android.app.Activity.performCreate(android.os.Bundle, android.os.PersistableBundle) (Activity.java:7009)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:7000)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1214)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2731)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2856)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1589)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void android.os.Looper.loop() (Looper.java:164)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6494)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:438)
2019-04-15 08:19:34.113 16886-16886/com.example I/zygote: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:807)
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the react-native-navigation tag.