Error: Could not find com.google.gms:google-services:1.0. when adding google service plugin in build.gradle in android studio

前端 未结 20 982
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 04:12

I am integrating OAuth login for Google+ on my android application, following the tutorial.

According to the tutorial, I should add the Google Service plugin by addi

相关标签:
20条回答
  • 2020-12-03 05:00

    For me adding this under dependencies worked

    compile 'com.google.gms:google-services:3.0.0'
    
    0 讨论(0)
  • 2020-12-03 05:03

    I got a similar problem while following the instructions for implementing a GCM client in Android Studio, however, the message I got was :

    Error: Could not find com.google.gms:google-services:1.3.0-beta1...

    Although I never figured out what was wrong, I simply copied my sources, resources, manifest, and keystore into a new Android Studio project. I then edited the auto-generated gradle build files for the new project by manually re-adding my dependencies.

    I made sure not to copy over my build files from the old project verbatim (since the source of the error likely lay in them somewhere).

    It is not a satisfying solution, but it worked for me and it took little time.

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