I have updated compileSdkVersion from 23 to 24. After, it gave me an error for com.google.android.gms. When I checked the library, there is only one com.google.android.gms is in the version of 8.3.0 (measurement).
I couldn't force to update measurement as
compile 'com.google.android.gms:play-services-measurement:9.4.0'
It is giving the following error;
Failed to resolve:
com.google.android.gms:play-services-measurement:9.4.0
I have examined other stackoverflow questions but they couldnt solve my problem.
How can I solve this error?
Here are my dependencies;
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile('com.google.api-client:google-api-client-android:1.20.0') {
exclude group: 'org.apache.httpcomponents'
}
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.google.android.gms:play-services-gcm:9.4.0'
compile 'com.google.android.gms:play-services-analytics:9.4.0'
compile 'com.google.android.gms:play-services-maps:9.4.0'
compile 'com.google.android.gms:play-services-location:9.4.0'
compile 'com.github.npanigrahy:Custom-Calendar-View:v1.0'
compile 'com.android.support:support-v4:24.2.0'
compile 'com.wonderpush:wonderpush-android-sdk:1.2.3.2'
compile 'com.android.support:design:24.2.0'
compile 'org.mod4j.org.apache.commons:lang:2.1.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5#aar') {
transitive = true;
}
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile project(':circleimageview-release')
}
full error text:
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 8.3.0.
I have find the solution of my problem. I have updated my project level of my gradle as from
classpath 'com.google.gms:google-services:1.5.0-beta2'
to
classpath 'com.google.gms:google-services:3.0.0'
Related
Im trying to use GoogleSignIn for an app but I cant resolve this issue. I read that to use GoogleSignIn class you should use the e 'com.google.android.gms:play-services-auth:11.6.0' version so I updated my gradle to this:
dependencies {
implementation 'com.google.firebase:firebase-messaging:10.2.6'
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.crystal:crystalrangeseekbar:1.0.0'
compile 'com.mikhaellopez:circularimageview:3.0.2'
compile 'com.estimote:sdk:0.11.0#aar'
compile 'com.google.code.gson:gson:2.7'
compile 'com.facebook.android:facebook-android-sdk:4.23.0'
compile 'com.google.android.gms:play-services-maps:11.6.0'
compile 'com.google.android.gms:play-services-location:11.6.0'
compile 'com.google.android.gms:play-services-auth:11.6.0'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.google.firebase:firebase-messaging:11.6.0'
compile 'com.gtomato.android.library:carouselview:2.0.1'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.squareup.okhttp3:okhttp:3.8.1'
compile 'com.google.gms:google-services:3.2.0'
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.github.bumptech.glide:glide:4.0.0-RC1'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC1'
}
But I have the same mistake over and over again. Any idea about how to solve it? Also I have this btw.
buildscript {
ext.kotlin_version = '1.1.51'
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.2.0'
}}
The message:
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 11.6.0.
You should use the same version for the google play service libraries and firebase libraries.
Change:
implementation 'com.google.firebase:firebase-messaging:10.2.6'
with
implementation 'com.google.firebase:firebase-messaging:11.6.0'
I am using adobe creative sdk library in my photo editing application. When I add dependencies of this library in my application, it adds its necessary libraries in my project. It adds google play services base library version 9.4.0 which is not the latest version.So, problem is that when I add a google ads dependency in my project, it shows error as below:
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 11.8.0.
So how can I update the play services base library version? it is not showing in my Gradle file but its showing in my external libraries of the project as shown below.
Build.gradle dependencies:
implementation 'com.google.firebase:firebase-core:11.8.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
testCompile 'junit:junit:4.12'
/* Add the CSDK framework dependencies (Make sure these version numbers are correct) */
// compile 'com.aviary.android.feather.sdk:aviary-sdk:3.6.3'
compile 'com.android.support:appcompat-v7:25.4.0'
compile 'com.adobe.creativesdk.foundation:auth:0.9.1251'
compile 'com.adobe.creativesdk:image:4.8.4'
compile 'com.localytics.android:library:4.0.1'
compile 'com.android.support:design:25.4.0'
compile 'com.android.support:multidex:1.0.2'
compile 'com.android.support:support-v4:25.4.0'
compile 'com.intuit.sdp:sdp-android:1.0.4'
compile 'com.github.bumptech.glide:glide:4.3.1'
compile 'com.google.android.gms:play-services-ads:11.8.0'
implementation 'com.android.support:support-v4:25.4.0'
External Libraries Directory
I have used the code like below code. I am getting this exception. I checked the several links according to that links I have done my code. but still get issue
Please advice me to overcome from this issue
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 10.2.6.
My gradle like this
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
final RETROFIT = '2.3.0'
final SUPPORT_LIBRARY_VERSION = '25.3.1'
final FIREBASE_VERSION = '10.0.1'
final PLAY_SERVICE = '10.2.6'
//support
compile "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:design:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:support-v4:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:cardview-v7:$SUPPORT_LIBRARY_VERSION"
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
//api inspection
compile 'com.facebook.stetho:stetho:1.4.2'
compile 'com.facebook.stetho:stetho-okhttp3:1.4.2'
//api
compile "com.squareup.retrofit2:retrofit:$RETROFIT"
compile "com.squareup.retrofit2:converter-gson:$RETROFIT"
compile 'com.google.code.gson:gson:2.7'
//play
compile "com.google.android.gms:play-services-location:$PLAY_SERVICE"
compile "com.google.android.gms:play-services-analytics:$PLAY_SERVICE"
//push
compile "com.google.firebase:firebase-core:$FIREBASE_VERSION"
//mutlidex
compile 'com.android.support:multidex:1.0.0'
//image
compile 'com.github.bumptech.glide:glide:3.7.0'
//log
compile 'com.jakewharton.timber:timber:4.5.1'
//scan
compile 'com.google.zxing:core:3.0.1'
//others
compile 'me.relex:circleindicator:1.2.2'
}
apply plugin: 'com.google.gms.google-services'
You are using different version of the same libraries.
final FIREBASE_VERSION = '10.0.1'
final PLAY_SERVICE = '10.2.6
Keep in mind that Firebase has a dependency with google play services libraries.
I have a conflict with my dependencies, and no matter which version I try that it recommends me, it doesn't solve the issue. Looking around did no help so this is my last resort. Here is my 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 11.0.2.
My Gradle;
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.0'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support:design:26.+'
compile 'com.nightonke:boommenu:2.1.0'
compile 'com.google.firebase:firebase-messaging:11.0.2'
compile 'com.google.firebase:firebase-core:11.0.4'
compile 'com.google.firebase:firebase-ads:10.0.1'
compile 'com.google.android.gms:play-services-plus:11.0.2'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
You should remove following line from gradle
compile 'com.google.android.gms:play-services-plus:11.0.2'
Firebase dependencies must have same version
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-core:11.0.4'
compile 'com.google.firebase:firebase-ads:11.0.4'
compile 'com.google.android.gms:play-services-plus:11.0.4'
Error:Execution failed for task ':app:processDebugGoogleServices'.
Please fix the version conflict either by updating the version of the
google-services plugin
You should use SAME versions of FIREBASE & GMS .
Use 11.0.4 .
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-core:11.0.4'
compile 'com.google.firebase:firebase-ads:11.0.4'
compile 'com.google.android.gms:play-services-plus:11.0.4'
Finally Clean-Rebuild-Run .
compile 'com.google.firebase:firebase-messaging:11.0.2'
compile 'com.google.firebase:firebase-core:11.0.2'
compile 'com.google.firebase:firebase-ads:11.0.2'
compile 'com.google.android.gms:play-services-plus:11.0.2'
Change these dependency with this version.
I have the next gradle file:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
classpath 'com.google.gms:google-services:2.0.0-alpha3'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile 'com.android.support:design:23.2.1'
compile 'com.loopj.android:android-async-http:1.4.4'
compile 'com.google.android.gms:play-services-base:8.4.0'
compile 'com.google.android.gms:play-services-location:7.3.0'
compile 'com.google.gms:google-services:2.1.0-rc1'
}
I'm getting error in the lines starting with: compile 'com.google.android.gms
The error is:
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 8.3.0.
How I can know what version are available for this specific component?
You should keep the version of com.google.android.gms libraries the same. If you are going to use v. 8.4.0 for the services.base, then you should always keep the others the same. So, you should also set services-location to the same version:
compile 'com.google.android.gms:play-services-base:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
See Google Play Services for more version information.
Also, here is a similar question that is helpful for general Gradle setup as well: Version conflict updating to 8.4.0