google-services:4.3.9 breaks firebase
See original GitHub issueAndroid app
My root build.gradle.kts contains
dependencies {
classpath("com.google.gms:google-services:4.3.8")
I updated today com.google.gms:google-services:4.3.8 to com.google.gms:google-services:4.3.9 and my android app crashes on launch now due to firebase.
2021-08-06 22:30:10.671 13469-13469/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.rollertoaster.app.free, PID: 13469
java.lang.RuntimeException: Unable to resume activity {com.rollertoaster.app.free/com.rollertoaster.app.MainActivity}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.rollertoaster.app.free. Make sure to call FirebaseApp.initializeApp(Context) first.
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4205)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4237)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.rollertoaster.app.free. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(FirebaseApp.java:183)
at com.google.firebase.perf.FirebasePerformance.getInstance(FirebasePerformance.java:132)
at com.google.firebase.perf.FirebasePerformanceInitializer.onAppColdStart(FirebasePerformanceInitializer.java:29)
at com.google.firebase.perf.application.AppStateMonitor.sendAppColdStartUpdate(AppStateMonitor.java:274)
at com.google.firebase.perf.application.AppStateMonitor.onActivityResumed(AppStateMonitor.java:195)
at android.app.Application.dispatchActivityResumed(Application.java:436)
at android.app.Activity.dispatchActivityResumed(Activity.java:1265)
at android.app.Activity.onResume(Activity.java:1789)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1446)
at android.app.Activity.performResume(Activity.java:7939)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4195)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4237)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
If I revert back from .9 to .8, then everything works again.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8
Top Results From Across the Web
Firebase Apple SDK Release Notes - Google
Breaking change: import Firebase will no longer implicitly import Firebase Storage and Firebase Functions APIs. Use import FirebaseStorage and import ...
Read more >google-services:4.3.9 breaks firebase · Issue #2894 - GitHub
Android app My root build.gradle.kts contains dependencies { classpath("com.google.gms:google-services:4.3.8") I updated today ...
Read more >Firebase Status Dashboard
Firebase Status Dashboard ; App Distribution ; App Indexing ; Authentication ; Cloud Messaging.
Read more >Download Firebase config file or object - Google Help
You can download the Firebase config file or Firebase config object for each of your project's apps from the Firebase console's Project settings...
Read more >Firebase - Adding database url into config breaks the build
Downgrading firebase version to 8.10.0 solved the issue.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
google-services-plugin 4.3.10 is now live and should fix the above issue, please re-open if this is not the case.
We are still periodically hitting this issue on 4.3.10. Some of the builds coming from our CI machine will hit this error, and then the next build will be fine. I am unsure whether it is a caching issue or what exactly. When I look on the build machine the values.xml file is in the correct place, but looking in the output APK, the string ‘google_app_id’ does not appear in the ‘resources.arsc’ file (according to grep). It does appear in that file for builds that work.