Tags
Android
Asked 3 years ago
3 Oct 2021
Views 1008
steave ray

steave ray posted

Android - In project


In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0.
1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.android.gms:play-services-base:15.0.1 -> com.google.android.gms:play-services-basement@[1
5.0.1], but play-services-basement version was 17.0.0.

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-bom@28.4.1
-- Project 'app' depends onto com.google.android.gms:play-services-maps@{strictly 15.0.1}
-- Project 'app' depends onto com.google.firebase:firebase-installations-interop@{strictly 17.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-maps@15.0.1
-- Project 'app' depends onto com.google.firebase:firebase-measurement-connector@{strictly 19.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-base@{strictly 15.0.1}
-- Project 'app' depends onto com.google.firebase:firebase-bom@{strictly 28.4.1}
-- Project 'app' depends onto com.google.android.gms:play-services-cloud-messaging@{strictly 16.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-places-placereport@{strictly 15.0.1}
-- Project 'app' depends onto com.google.firebase:firebase-iid-interop@{strictly 17.1.0}
-- Project 'app' depends onto com.google.android.gms:play-services-tasks@{strictly 17.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-location@{strictly 15.0.1}
-- Project 'app' depends onto com.google.android.gms:play-services-basement@{strictly 17.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-stats@{strictly 17.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-common@{strictly 20.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-messaging@{strictly 22.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-installations@{strictly 17.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-datatransport@{strictly 18.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-location@15.0.1
-- 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 = true }" to your bu
ild.gradle file.
jaggy

jaggy
answered Oct 3 '21 00:00

1. open the app/build.gradle file
2. add the below line at end of the file

googleServices.disableVersionCheck = true

3. re sync now and error will be resolved.
Post Answer