question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

google-services:4.3.9 breaks firebase

See original GitHub issue

Android 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.

Not sure if it’s a firebase issue or a google-services issue, but I figured I’d be proactive.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:11
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
davidmotsoncommented, Aug 9, 2021

google-services-plugin 4.3.10 is now live and should fix the above issue, please re-open if this is not the case.

1reaction
DDR13GITcommented, Aug 7, 2021

I have lost precious 6 hours of my life for this problem -.- reverted back to .8

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes | Firebase - Google
Crashlytics now lets you set up customized alerting to third-party services using Cloud Functions for Firebase. For example, you can write a function...
Read more >
Release Notes - Play services - Google Developers
For more information, see the Firebase Android SDK Release Notes. Artifacts released on maven.google.com. com.google.gms:google-services:4.3.
Read more >
Flutter Firebase and Android issue - unable to initialise ...
TL;DR When compiling to Android, Flutter App doesn't start because Firebase cannot find my google-services.json. Here's the stacktrace:
Read more >
Android Installation - React Native Firebase
A google-services.json file contains all of the information required by the Firebase Android SDK to connect to your Firebase project.
Read more >
status:open componentid:855563 - Issue Tracker - Google
P TYPE STATUS ID LAST MODIFIED P2 Bug New 245487426 Nov 7, 2022 12:52PM P3 Bug New 236442563 Jun 21, 2022 11:51AM P3 Bug New 234163278...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found