After integrating Google login and Google map, run the project, report
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.
Look at the project. The build
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.novoda:bintray-release:0.3.4'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
Moreover is app. The build
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
//google map
compile 'com.google.android.gms:play-services-maps:9.8.0'
compile 'com.google.android.gms:play-services-location:9.8.0'
//google login
compile 'com.google.android.gms:play-services-auth:9.8.0'
}
According to the latest version of the document, if 9.8.0 is changed to 9.0.0, then the map’s mmapView.onstop (), mmapView.onstart (); The method is not integrated, nor is it possible to change Google-Services :3.0.0 to document query 3.1.1.
The final solution will be
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
Instead of
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'
Can be
Read More:
- As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- ERROR: Unsupported method: AndroidProject.getVariantNames().
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- Failed to find target with hash string ‘android-25’ in:D:\SDK
- Android compilation error unresolved reference: kotlinx solution
- Failed to resolve: com.github
- Android studio import project problems summary
- Import Android project Error:Internal error : org.gradle.tooling .BuildException: Could not execute build…
- Solution to the expiration and unavailability of Android studio plug-in plugin
- Errorjava.lang.NullPointerException(no error message)
- No value has been specified for this provider
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Some processing experiences of failed to notify build listener
- ERROR Unsupported method AndroidProject.getVariantNames().
- Could not install Gradle distribution
- Execution failed for task ‘:app:processDebugManifest’
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- Change API level Android studio
- Failed to find target with hash string”android-21″ in:D:\AndroidVersionSdk
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)