question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle Sync with google services modules

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

30reactions
williaanlopescommented, Nov 13, 2019

Just add googleServices.disableVersionCheck = true Works!

22reactions
AmirJabbaricommented, May 18, 2019

add code to end of build.gradle com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true bellow apply plugin: ‘com.google.gms.google-services’

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Google Services Gradle Plugin
Process the google-services.json file and produce Android resources that can be used in your application's code. See Adding the JSON File more information....
Read more >
cannot sync gradle when adding "apply plugin: 'com.google ...
No matching client found for package name 'com.example.lenovo.hereandthere'. The problem can occur because of one of the following reason:.
Read more >
Add build dependencies - Android Developers
The Gradle build system in Android Studio makes it easy to include external binaries or other library modules to your build as dependencies....
Read more >
Fail to update to google services gradle plugin 3.3.0 in ...
Include the following information that is specific for problems related to building your projects or problems with Gradle sync: Gradle version: 4.5.1
Read more >
Learning the Basics - Gradle User Manual
Publishing a project as module; Understanding Gradle Module Metadata ... Used to override the Google Cloud Storage root service path which the Google...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found