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:
- Execution failed for task ‘:app:processDebugManifest’
- Execution failed for task ‘:app:stripDebugDebugSymbols‘.
- Perfect solution Error:Execution failed for task ‘: APP:transformClassesWithDexForDebug ‘… Problem
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- Execution failed for task ‘:app:mergeDebugResources’.
- Execution failed for task ‘:app:processDebugManifest’.
- Error:Execution failed for task ‘: app:transformDexArchiveWithExternalLibsDexMergerForDebug The solution
- To solve the execution failed for task ‘: app:transformDexArchiveWithDexMergerForDebug ‘
- Error:Execution failed for task’:app:processDebugResources’. Personally resolved
- Android: How to Solve Execution failed for task ‘:app:compileDebugJavaWithJavac‘. > javax/xml/bind/JAXBException
- Execution failed for task ‘:app:installDebug’.
- Quick solution org.gradle.api . tasks.TaskExecutionException : Execution failed for task ‘: app:compileJava ‘
- Execution failed for task :Test:lintVitalRelease/Lint found fatal errors while assembling a release
- Error code 1 error resolution (NPX create react app my app execution reports an error)
- Adobe finally launched Photoshop fix on Android, a powerful mobile phone map revision app
- Hive execution task report cannot find main class error
- Spring jacjson version conflict “nosuchme” thodError:com.fasterxml.jackson.databind.ObjectMapper.canSerialize “
- DB2 timed task execution stored procedure cannot complete scheduler thread’s initialization