My application runs fine on the emulator in debug mode. When I tried to use the signed APK on the device or run it in release mode on the emulator using:
react-native run-android --variant=release
It just gives a blank white screen and does not boot.
I use React-Native-Navigation and React-Native-Firebase, which may or may not contribute to this problem.
One error that I see is related to Firebase, I think:
W / GooglePlayServicesUtil: Google Play services are out of date. requires 11717000 found 10298470 11-20 11: 24: 04.624 16106-16106 /? W / FA:
The fact that failed to send app launch certainly looks ominous.
EDIT: I'm not sure if the above error actually causes a blank white screen when launching the version on my device. This message appears in the emulator, but my application works with the emulator. On my device, I see that the version of Google Play Services is 11.7.46, which I think should work fine.
Is there anything else that could cause my application to be a blank white screen only on release?
EDIT 2:
This time I found another error (and since then I have abandoned the older version of action-native-firebase 2.2)
11-25 12: 11: 07.278 5281-5295 / com.spectrum E / FirebaseCrash: failed to load crash reports com.google.android.gms.internal.mn:.com.google.android.gms.dynamite.DynamiteModule $ zzc: Remote download failed. Local reserve not found. at com.google.android.gms.internal.ml.zzFk (Unknown source) at com.google.firebase.crash.zzc.zzFi (Unknown source) in java.util.concurrent.FutureTask.run (FutureTask.java:237 ) in java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113) in java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.javahaps88) in java.lang.Thread.run (Thread.java: 818) Called: com.google.android.gms.dynamite.DynamiteModule $ zzc: Remote download failed. Local reserve not found ....
EDIT 3:
here are the dependencies on app.gradle :
dependencies { compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:25.0.1" compile "com.facebook.react:react-native:+" // From node_modules compile project(':react-native-navigation') // RNFirebase required dependencies compile(project(':react-native-firebase')) { transitive = false } compile "com.google.firebase:firebase-core:11.0.4" // RNFirebase optional dependencies compile "com.google.firebase:firebase-crash:11.0.4" compile "com.google.firebase:firebase-messaging:11.0.4" // If you are receiving Google Play API availability issues, add the following dependency // compile "com.google.android.gms:play-services-base:11.0.4" }