Firebase Crash produces ANR during launch

前端 未结 4 1364
甜味超标
甜味超标 2020-12-15 05:34

Recently I got feedback and also I was able to reproduce it easily on my Nexus 5 with cleared app data. Simply, when adding compile \'com.google.firebase:firebase-crash:

相关标签:
4条回答
  • 2020-12-15 05:57

    Just for the record:

    We solved the DynamiteModulesC NPE and Uncaught exception in Firebase runloop (3.0.0) by removing following line

    //remove this "feature" if you should use it
    FirebaseApp.setAutomaticResourceManagmentEnabled(true)
    

    API description:

    If set to true it indicates that Firebase should close database connections automatically when the app is in the background. Disabled by default.

    (Might be, that we missed some configurations for correct usage of this feature, but App is working as expected after not enabling the ResourceManagment)

    0 讨论(0)
  • 2020-12-15 06:08

    Disable the Firebase Analytics Crash Reporting, use the below code inside app.gradle file.Hope this will help you

    configurations {

      all*.exclude group: 'com.google.firebase', module: 'firebase-crash'
    

    }

    0 讨论(0)
  • 2020-12-15 06:13

    The issue has been introduced with the Google Play Services 9.6.80 (currently in rollout) and affects all the apps using the Firebase Crash reporting (despite of the version bundled in your app).

    • Temporary solution: disable Firebase Crash by removing the following entry from the build.gradle:

      compile 'com.google.firebase:firebase-crash:9.x.x'

    • Long term solution: wait that Google releases a fixed version of the GPS before enabling Firebase Crash again.


    UPDATE 09/16:

    Google is rolling out a fixed version of Google Play Services (9.6.83) which addresses the issue with Firebase Crash.

    0 讨论(0)
  • 2020-12-15 06:16

    9.6.83 still gives a different anr crash Our app when pushed to Play Store Beta and when installed on devices crashes the first time on launch. Subsequently it works , but we cannot push to prod without understanding the issue.

    Here is the ANR crash report

    java.lang.RuntimeException: Unable to instantiate receiver com.google.android.gms.analytics.CampaignTrackingReceiver: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.analytics.CampaignTrackingReceiver"

    Edit : We had to add compile 'com.google.android.gms:play-services-analytics:9.4.0' explicitly and the launch anr for first time got resolved. But I am not sure that was the fix as we dont use the library at all. Maybe Playstore fixed their bug to all apks?

    0 讨论(0)
提交回复
热议问题