Gradle Sync with google services modules
See original GitHub issueDescribe the bug I upgraded my google services libraries to the latest and I found dependency problems : `In project ‘app’ a resolved Google Play services library dependency depends on another at an exact version (e.g. “[16.0. 0]”, but isn’t being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.firebase:firebase-messaging:17.0.0 -> com.google.firebase:firebase-iid@[16.0.0], but fire base-iid version was 17.0.3.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. – Project ‘app’ depends onto com.google.firebase:firebase-core@16.0.6 – Project ‘app’ depends onto com.google.firebase:firebase-messaging@17.0.0
For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding “googleServices { disableVersionCheck = false }” to your b uild.gradle file.`
To Reproduce Steps to reproduce the behavior: my gradle file dependencies is like the following : `dependencies { implementation fileTree(include: [‘*.jar’], dir: ‘libs’) // Testing-only dependencies // Force usage of support annotations in the test app, since it is internally used by the runner module. testImplementation ‘junit:junit:4.12’ testImplementation ‘org.mockito:mockito-core:2.7.21’ testImplementation ‘org.robolectric:robolectric:3.8’ testImplementation ‘org.robolectric:shadows-support-v4:3.0’ implementation ‘com.android.support:support-v4:28.0.0’ implementation ‘com.android.support:appcompat-v7:28.0.0’ implementation ‘com.android.support:design:28.0.0’ implementation ‘com.google.android.gms:play-services-location:15.0.1’ implementation ‘com.google.android.gms:play-services-places:15.0.1’ implementation ‘com.google.android.gms:play-services-analytics:16.0.6’ implementation ‘com.google.android.gms:play-services-maps:15.0.1’ implementation ‘com.google.firebase:firebase-core:16.0.6’ implementation ‘com.google.firebase:firebase-messaging:17.0.0’ implementation ‘info.hoang8f:android-segmented:1.0.6’ implementation ‘com.github.woxthebox:draglistview:1.2.5’ implementation ‘com.github.PhilJay:MPAndroidChart:v3.0.3’ implementation ‘com.jpardogo.materialtabstrip:library:1.1.0’ implementation ‘fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar’ implementation ‘com.loopj.android:android-async-http:1.4.9’ implementation ‘com.daimajia.swipelayout:library:1.2.0@aar’ implementation ‘com.daimajia.androidanimations:library:1.1.3@aar’ implementation ‘com.melnykov:floatingactionbutton:1.3.0’ implementation ‘com.android.support:multidex:1.0.3’ implementation ‘com.google.code.gson:gson:2.8.5’ implementation ‘com.android.support:recyclerview-v7:28.0.0’ implementation ‘com.timehop.stickyheadersrecyclerview:library:0.4.3@aar’ implementation ‘com.github.bumptech.glide:glide:3.7.0’ implementation ‘com.nhaarman.supertooltips:library:3.0.0’ implementation(‘com.crashlytics.sdk.android:crashlytics:2.9.8@aar’) { transitive = true; } androidTestImplementation ‘com.android.support.test.espresso:espresso-core:2.2.2’, { exclude group: ‘com.android.support’, module: ‘support-annotations’ } implementation ‘com.github.apl-devs:appintro:v4.2.2’ implementation ‘com.android.support:customtabs:28.0.0’ implementation ‘jp.wasabeef:glide-transformations:3.0.1’ implementation ‘com.google.zxing:core:3.2.1’ implementation project(‘:zxing-android-embedded’) implementation ‘net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:2.1.0’ implementation ‘com.github.arcadefire:nice-spinner:1.3.1’ implementation ‘com.android.support:cardview-v7:28.0.0’ implementation ‘com.android.support.constraint:constraint-layout:1.1.3’ implementation project(‘:awesome-calendar’)
}`
**My gradle and google services version is the following : **
classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0'
Expected behavior Succesful build
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top GitHub Comments
Just add
googleServices.disableVersionCheck = true
Works!add code to end of build.gradle com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true bellow apply plugin: ‘com.google.gms.google-services’