invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.68k stars 2.21k forks source link

App Crash on Android version 4.3 #5062

Closed sonivaibhav27 closed 3 years ago

sonivaibhav27 commented 3 years ago

FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.google.android.gms.internal.ads.zzzt at com.google.android.gms.ads.MobileAdsInitProvider.(com.google.android.gms:play-services-ads-lite@@19.7.0:2) at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1130) at android.app.ActivityThread.installProvider(ActivityThread.java:5107) at android.app.ActivityThread.installContentProviders(ActivityThread.java:4725) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4665) at android.app.ActivityThread.access$1400(ActivityThread.java:159) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1376) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(Activi tyThread.java:5419) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862) at dalvik.system.NativeStart.main(Native Method)

Versions "@react-native-firebase/admob": "^10.5.1", "@react-native-firebase/app": "^10.5.0", "react-native": "0.63.4", I have followed all the steps in the installation guide

WadhahEssam commented 3 years ago

I don't know if this issue is a rn-firebase issue, or an android issue, but it sure needs some serious investigations.

tons of my users are not able to use the app at all in android, thus they are all leaving a 1 star reviews.

and this happens when I open a screen that has any admob ad including (initiating interstitial, showing banners).

someone in stakeoverflow suggested that updating chrome helped solving the issue, and after testing it, I can confirm that it works. https://stackoverflow.com/questions/46747775/firebase-firestore-get-key-with-collection-add

I have a feeling that it is an admob issue that will be fixed once they realized what they did.

WadhahEssam commented 3 years ago

a lesson learned from this, maybe ads visibility should be toggled throw a remote config value to avoid this kind of behaviour in the future.

mikehardy commented 3 years ago

@WadhahEssam are you related profesionally to @sonivaibhav27 at all, or are you hijacking this thread?

@sonivaibhav27 you have not provided the details in the template, so I'm closing this.

When I see "NoClassDefFound" errors on Android 4.x I immediately think "they've probably not implemented multidex" - https://rnfirebase.io/#android-enabling-multidex

Without the template information though there is nothing to go on, I will close the issue.

WadhahEssam commented 3 years ago

@mikehardy

Knowing that I haven't updated my app for almost 20 days, and this issue happened yesterday. https://user-images.githubusercontent.com/24798045/112153836-c5b22680-8bf4-11eb-90ff-80fd3e0d6a58.mov

mikehardy commented 3 years ago

Check the news. https://www.engadget.com/android-gmail-stop-running-webview-234125352.html

WadhahEssam commented 3 years ago

@mikehardy Thank you for this insight, and sorry for the disruption + I am not related to the gentle man who created the issue.