更新谷歌插件服务?

时间:2016-06-25 16:01:28

标签: android android-layout android-studio admob android-gradle

我正在尝试对我的简单应用程序进行更新。但我遇到了这个问题,要求更新插件。请帮帮我

enter image description here

OBS:我在build.Gradle(Module:app)

中插入apply plugin: 'com.google.gms.google-services'

2 个答案:

答案 0 :(得分:1)

在Android Studio中,点击“SDK Manage”(第三个结束)

enter image description here

然后查找“SKD工具”并在工具列表“Google Play服务”中查找。点击安装/更新到最新版本。

将最新版本添加到您的Gradle:

dependencies {
   ....
   compile 'com.google.android.gms:play-services:9.0.2'
}

如果您使用SDK管理器更新了Play服务,并且您的gradle文件仍具有旧版本,则Android Studio将显示将版本号更改为最新版本的消息

enter image description here

答案 1 :(得分:-1)

您必须将google-play-services依赖关系从7.8.0更新为最低9.0.0