简体   繁体   中英

Version conflict in gradle file

This is pathetic.

implementation 'com.google.android.gms:play-services-location:15.0.1' // Error
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-places:15.0.1'
implementation 'com.google.firebase:firebase-messaging:15.0.2'

This line implementation 'com.google.android.gms:play-services-location:15.0.1' is causing error.

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 15.0.1.

Is it from Google?

更新Google Play服务Gradle插件版本:

classpath 'com.google.gms:google-services:3.3.1'

Make sure you apply the plugin 'com.google.gms.google-services' at the bottom of your gradle build/app file.

And not (also) at the top. In my case the firebase-plugin crashed, but was kind enough to apply the plugin at the top of the file...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM