Error: more than one library with package name 'com.google.android.gms'

前端 未结 2 1199
囚心锁ツ
囚心锁ツ 2020-12-16 16:19

I\'m using Android Studio 0.8.2, and created a project with Android 4.1 and Android Wear 4.4. I need to integrate it with Google Play Services.

I\'m trying to follo

相关标签:
2条回答
  • 2020-12-16 16:44

    May be possibly your are using have different types of dependencies with different versions:

    com.google.android.gms:play-services-neededDependency:version

    Ex: If you are using both dependencies as mention below:

    compile 'com.google.android.gms:play-services-gcm:7.8.0'
    compile 'com.google.android.gms:play-services-ads:8.3.0'
    

    Try to use same version for different dependencies Like:

    compile 'com.google.android.gms:play-services-gcm:7.8.0'
    compile 'com.google.android.gms:play-services-ads:7.8.0'
    

    Thank you, hope helpful to you.

    0 讨论(0)
  • 2020-12-16 17:01

    If you have:

    compile 'com.google.android.gms:play-services-wearable:5.0.77'
    

    then you don't need:

    compile 'com.google.android.gms:play-services:5.0.77'
    

    Delete the non-wearable one.

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