Gradle Error:Execution Failed for Task ':App:Processdebuggoogleservices'

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

I'v got a same issue. but Now I'm fixed.

You should delete a line apply plugin: 'com.google.gms.google-services'

because "com.android.application" package already has same package.

Execution failed for task ':app:processDebugGoogleServices'. Failed to delete: \google-services\debug

Just delete build folder inside android/app/ and run as an administrator your cmd.

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

compile with

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

and remove

compile 'com.google.android.gms:play-services-gcm:+'
compile 'com.google.android.gms:play-services-analytics:+'
compile 'com.google.android.gms:play-services-location:+'

apply plugin: 'com.google.gms.google-services'

It should work

Gradle Error:Execution failed for task ':app:processDebugGoogleServices' and Make sure to call FirebaseApp.initializeApp(Context) first

You need to add:

apply plugin: 'com.google.gms.google-services'

at the end of the file to be able to use the firebase libraries.

And in the top level gradle file add the latest version of the google-service plugin:

dependencies {
classpath 'com.google.gms:google-services:4.0.2'
// ...
}

This way you won't get the following error:

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

Please fix the version conflict.

Also check this:

https://developers.google.com/android/guides/google-services-plugin

Execution failed for task ':app:mapDebugSourceSetPaths'. Error while evaluating property 'extraGeneratedResDir' of task

Edit: 2022-10-03

I have seen the same issue with the latest Android Studio Dolphin release, where you need to specify the Gradle version to be 7.3.0 and Google Services 4.3.14.

plugins {
id 'com.android.application' version '7.3.0' apply false
id 'com.android.library' version '7.3.0' apply false
}

dependencies {
classpath 'classpath "com.google.gms:google-services:4.3.14'
}

According to the new Chipmunk update of Android Studio, if you need to use Google Services, you have to add the following lines of code inside your build.gradle (Project) file:

plugins {
id 'com.android.application' version '7.2.0' apply false
id 'com.android.library' version '7.2.0' apply false
id 'com.google.gms.google-services' version '4.3.10' apply false br>}

task clean(type: Delete) {
delete rootProject.buildDir
}

And inside your build.gradle (Module) file, the following plugin IDs:

plugins {
id 'com.android.application'
id 'com.google.gms.google-services' br>}

Execution failed for task :app:processDebugGoogleServices

Try this Update your firebase dependencies because You need to use same version of dependencies in your build.Gradle

compile 'com.google.firebase:firebase-core:11.6.0'
compile 'com.google.firebase:firebase-database:11.6.0'
compile 'com.google.firebase:firebase-crash:11.6.0'
compile 'com.google.firebase:firebase-messaging:11.6.0'

Android Studio - Execution failed for task ':app:processDebugGoogleServices'

Make sure dependencies from group com.google.android.gms and group com.google.firebase have the same version.

For example, current latest version is 11.0.1:

compile 'com.google.firebase:firebase-core:11.0.1' // <- This dependency must also have latest version
compile 'com.google.android.gms:play-services-location:11.0.1'
compile 'com.google.android.gms:play-services-maps:11.0.1'
compile 'com.google.android.gms:play-services-gcm:11.0.1'


Related Topics



Leave a reply



Submit