After upgrading to google play services 8.4.0 my app crashes on startup

后端 未结 10 1836
名媛妹妹
名媛妹妹 2020-12-11 00:24

I\'ve been previously using google play services 8.3.0 without any issue. I\'m looking to upgrade to google play services 8.4.0. I\'m using the following play libraries:

相关标签:
10条回答
  • 2020-12-11 01:04

    I just had this issue but solved it by downgrading the gradle version like so:

    Old, troublesome version:

        classpath 'com.android.tools.build:gradle:2.2.0-rc2'
    

    Fixed version:

        classpath 'com.android.tools.build:gradle:2.1.3'
    
    0 讨论(0)
  • 2020-12-11 01:07

    I've faced the same issue while going through the official tutorial.

    Solution was to change

    classpath 'com.google.gms:google-services:2.0.0-alpha6'
    

    to

    classpath 'com.google.gms:google-services:3.0.0'
    

    I've found the correct version number in the sample on the github.

    0 讨论(0)
  • 2020-12-11 01:09

    Versions of play-services libs should be equal, for example:

    DO

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

    DONT

    compile 'com.google.android.gms:play-services-maps:7.8.0'
    compile 'com.google.android.gms:play-services-gcm:8.4.0'
    
    0 讨论(0)
  • 2020-12-11 01:09

    I think you should include the -base library of the same version. Then it starts working again.

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