2017-03-06 143 views
-1

如何解決此錯誤?android studio版本衝突

error image

Error:Execution failed for task ':app:processDebugGoogleServices'.

Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0.

+1

更改您的谷歌播放服務版本到9.0.0像它說的 – tyczj

+0

錯誤信息字面上也是答案。 。 。 。 。 。 。 。 。 。 。 。 – Andrew

回答

0

實際可用的播放服務是10.2.0

我強烈建議使用您的build.gradle應用程序配置:

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

在我的項目之前,我遇到了同樣的問題。我解決我的問題,通過以下的build.gradle模塊:應用程序配置:

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

強烈建議有選擇地使用播放服務,以最大限度地減少應用程序的apk文件大小。例如:

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

Goodluck!