Version Conflict Updating to 8.4.0

Version conflict updating to 8.4.0

Use these dependencies for the project build.gradle

dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
classpath 'com.google.gms:google-services:2.0.0-alpha3'
}

and put this at the end of the app-level build.gradle file (after the dependencies).

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

I have no clue why putting this at the end (and not at the beginning ) solves the error.

EDIT 5/1/2016

Ok… So trying to put an end to all problems you guys have faced with my solution

This is my final app level gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "your-app-name"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

repositories {
jcenter()
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:design:23.1.1'
compile 'com.mcxiaoke.volley:library:1.0.6@aar'
}

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

and this is my final project level gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
classpath 'com.google.gms:google-services:2.0.0-alpha3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
jcenter()
}
}

Compare this with your own gradle files, and add or modify any values which are different from what I've written.

Please fix the version conflict either by updating the version of the google-services plugin or updating com.google.android.gms to 9.4.0

First thing first,

Change your firebase-messaging version to 10.2.0

One more thing have your added classpath 'com.google.gms:google-services:3.0.0' to your project's gradle? if no - add that one in yout dependencies as well.

Solution of No resource found errors,
you've forgotten to add design library as well,

Add this line in your app.gradle

compile 'com.android.support:design:25.2.0'

Execution failed for task processDebugGoogleServices or version conflict either by updating the version of the google-services plugin

All google libraries version should have same version:

Change:

compile 'com.android.support:appcompat-v7:26.0.2'

to:

compile 'com.android.support:appcompat-v7:27.0.1'

and:

compile 'com.google.firebase:firebase-crash:11.0.4'
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-core:11.0.4'

to:

compile 'com.google.firebase:firebase-crash:11.8.0'
compile 'com.google.firebase:firebase-messaging:11.8.0'
compile 'com.google.firebase:firebase-core:11.8.0'

Google authentication version conflict with Google Maps

Add the following line in the dependencies of the project-level build.gradle:

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

For a full working example, check out the following project on github.

Check ':app:processDebugGoogleServices' , Android Studio Gradle: Error:Execution failed for task ':app:processDebugGoogleServices'.

Hope this may help you.

Version conflict error is being shown, apparently there is no version conflict

The problem is with com.google.android.gms:play-services-auth:10.0.1 which is newer version as compared to other dependencies with version 9.2.0. You can simply use latest version of each of them and resolve conflicts.

So either go for 9.2.0

compile 'com.google.android.gms:play-services-auth:9.2.0'
compile 'com.google.firebase:firebase-auth:9.2.0'

or for 10.0.1

compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'

And obviously I would suggest to go for latest version always.



Related Topics



Leave a reply



Submit