App initialization very slow: FirebaseApp initialization unsuccessful

后端 未结 2 1292
无人共我
无人共我 2021-02-14 09:35

I know about this question but I don\'t think it helps me and the problem looks slightly different.

I\'m doing this app where I need to implement AppsFlyer for tracking a

相关标签:
2条回答
  • 2021-02-14 09:47

    I would suggest you to exclude the firebase group using gradle:

    compile('com.google.android.gms:play-services-ads:9.0.2') {
        exclude group: 'com.google.firebase', module: 'firebase-common'
    }
    
    compile('com.google.android.gms:play-services-gcm:9.0.2') {
        exclude group: 'com.google.firebase', module: 'firebase-common'
    }
    

    Or, simply apply a global exclude configuration, like this:

    configurations {
        all*.exclude group: 'com.google.firebase', module: 'firebase-common'
    }
    

    Hope it helps :)

    0 讨论(0)
  • 2021-02-14 10:01

    I had the same issue and not only I had to downgrade the services but also gradle version.

    In my case I had (in app/build.gradle)

    compile 'com.google.android.gms:play-services-location:9.0.2'
    compile 'com.google.android.gms:play-services-maps:9.0.2'
    compile 'com.google.android.gms:play-services-gcm:9.0.2'
    

    and (in build.gradle)

    classpath 'com.android.tools.build:gradle:2.1.2'
    

    After changing services back to 8.4.0 and gradle to 1.5.0 (Probably higher version is fine also but it was the one I had before upgrading to 2.1.2) everything is fine and FirebaseApp initialization is gone.

    Maybe it's not the best solution but I couldn't find anything else.

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