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

后端 未结 10 1873
名媛妹妹
名媛妹妹 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 00:57

    When selectively compile Google Play service APIs on 8.4.0, I've also encountered problems (8.3.0 -> 8.4.0).

    Error:

    Could not find method com.google.android.gms.common.internal.zzx.zzy
    

    Before upgrade:

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

    After upgrade (doesn't work):

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

    After upgrade (works fine):

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

    Conclusion: it seems like some of the play services now have some certain dependencies that you have to explicitly specify, e.g.: maps -> gcm.

提交回复
热议问题