Blank white screen on android using native reaction (release only)

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" } 
+5
source share
2 answers

As the error says:

Google Play Services is out of date. Required 11717000, but found 10298470

This means that you have a different version of the Google Play services. Suppose that you are using the latest firebase, which is in Firebase 11.6.0 , but you are using Google Play Services version 10.2.9, and the required version is 11.7.1.

In Firebase docs (in prerequisites):

A device running Android 4.0 (Ice Cream Sandwich) or later, as well as Google Play 11.6.0 and higher

So, you either need to download the latest version of Google Play Services, or update firebase in the build.gradle file

You currently have this version of firebase:

 'com.google.firebase:firebase-core:11.6.0' 

lower (possibly) to:

 'com.google.firebase:firebase-core:10.2.0' 

if you firebase-core value of firebase-core , you also need to lower (in build.gradle) firebase-auth / firebase-storage / firebase-database

+3
source

As you can see, the magazine, Google Play service is out of date. It takes 11717000, but found 10298470, this shows that this error is related to the older service of the game.

The current version is 11.6.0, so you need to update the build.gradle file and the synchronization.

 'com.google.firebase:firebase-core:11.6.0' 
0
source

Source: https://habr.com/ru/post/1273531/


All Articles