-
Notifications
You must be signed in to change notification settings - Fork 17
com.google.gms:google-services Compatibility Issue - com.google.firebase:firebase-iid is being requested by various other libraries at [[15.1.0,15.1.0]], but resolves to 16.0.0 #37
Comments
@sannyo Looks like you are using the Both this plugin and the strict version matcher solves the same problem of mismatched versions but in different ways. This plugin aligns versions automatically by upgrading them but the strict plugin errors on any mismatches. In this case I recommend removing either this plugin or the strict version matcher plugin. |
@jkasten2 Thanks for the reply. I created a gist with the minimal config to be able to reproduce the issue. |
@sannyo Ah yes, the In the mean time, right after the com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true https://gist.github.com/jkasten2/2c63ce79c03cac4943e240a46cea218c#file-build-gradle-L45-L47 Also the UpdateStarting with googleServices { disableVersionCheck = true } This also works with previous version of |
@sannyo We set |
Try to set classpath 'com.google.gms:google-services:3.2.1' classpath 'com.google.gms:google-services:3.3.0' |
@vishrut2207 The error is due to version checks Google added in version 3.3.0 of their This OneSignal plugin however upgrades or downgrades packages automatically instead when possible so you don't need to manually fix version conflicts on your own. |
It's working for normal app version, but it's not working for test application, I mean instrumented tests. Even workaround does not help. |
@btwarog Can you share your |
@jkasten2 your solution seems to be working for me. Would you mind elaborating why this works please? |
@marioskonstantinou @jkasten2 Maybe gradle clean is necessary? Not sure if it will help but if it is working on another machine, just maybe it's a dirty environment. EDIT: flag disabling the version check fixed my issue as well. Thanks @marioskonstantinou |
@saadmutahar Can you run the following and provide the full output? Also please provide text versions of your screenshots above, we can try your config but will need it to be copy-pasteable |
@jkasten2 Below you can see tree dependency when location-services wasn't added by myself in build.gradle.
You can see that com.google.android.gms:play-services-location isn't updating to version 15.0.1. |
@btwarog I have seen older versions being used on the
You should then see this; debugCompileClasspath - Resolved configuration for compilation for variant: debug
...
+--- com.onesignal:OneSignal:[3.8.1, 3.99.99] -> 3.10.1
| +--- com.google.firebase:firebase-messaging:[10.2.1, 12.1.0) -> 17.0.0 (*)
| +--- com.android.support:support-v4:[26.0.0, 27.2.0) -> 27.1.1 (*)
| +--- com.android.support:customtabs:[26.0.0, 27.2.0) -> 27.1.1
| | +--- com.android.support:support-compat:27.1.1 (*)
| | +--- com.android.support:support-annotations:27.1.1
| | \--- com.android.support:support-core-ui:27.1.1 (*)
| +--- com.google.android.gms:play-services-location:[10.2.1, 12.1.0) -> 15.0.1
| | +--- com.google.android.gms:play-services-base:[15.0.1,16.0.0) -> 15.0.1 (*)
| | +--- com.google.android.gms:play-services-basement:[15.0.1,16.0.0) -> 15.0.1 (*)
| | +--- com.google.android.gms:play-services-places-placereport:[15.0.1,16.0.0) -> 15.0.1
| | | \--- com.google.android.gms:play-services-basement:[15.0.1,16.0.0) -> 15.0.1 (*)
| | \--- com.google.android.gms:play-services-tasks:[15.0.1,16.0.0) -> 15.0.1 (*)
| \--- com.google.android.gms:play-services-base:[10.2.1, 12.1.0) -> 15.0.1 (*)
\--- com.android.support:multidex:1.0.2 |
@jkasten2 If I remove 'com.github.ar-android:DrawRouteMaps:1.0.0', then it's working fine. Two weeks ago this same code was working, then suddenly stop building. |
@saadmutahar Thanks for reporting. Can you provide a gist of these instead of using |
@jkasten2 Yes of-course. This is a gist for all three files. Thank you. |
@saadmutahar Thanks for the details. I found the root of the issue and created a ticket on DrawRouteMaps's github issue tracker with a possible work around. I also created an issue on this repo to automatically resolve a dependency mismatch like this in the future. |
@jkasten2 I am facing a similar issue need help urgently , below is the error I am facing The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.4,15.0.4], [16.0.2,16.0.2]], but resolves to 16.0.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. this is my stacktree this is my gradle file |
@saadmutahar The error you are seeing is from com.google.gms.google-services plugin. I didn't see it in your gist but it Google tells you to add it to the last line so maybe you miss copied your `build.gralde. You can disable the version check by adding the following noted above #37 (comment). If you are using this OneSignal plugin you don't need to add this as this plugin automatically disable the version checking part of it with the same setting. |
I did two things: In the project level gradle change the version of com.google.gms:google-services:4.0.1 to com.google.gms:google-services:4.2.0 |
The library com.google.android.gms:play-services-base is being requested by various other libraries at [[10.2.4,10.2.4]], but resolves to 15.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. |
@kalraneeraj24550 Use the same library version of 15.0.1 in all your module gradle files. At
the app level it uses 15.0.1 but some of your module currently using
10.2.4. So just avoiding this same all version of goole play services to
15.0.1.
…On Fri, Dec 28, 2018 at 3:02 PM kalraneeraj24550 ***@***.***> wrote:
The library com.google.android.gms:play-services-base is being requested
by various other libraries at [[10.2.4,10.2.4]], but resolves to 15.0.1.
Disable the plugin and check your dependencies tree using ./gradlew
:app:dependencies.
i am facing error , anyone plz help me
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWHxMY99C7m3EO66zSYwmL6tXGEWQW_-ks5u9gg5gaJpZM4UMOaa>
.
|
works for me |
For Ionic cordova build android & set -
in config.xml |
@akashjadhav1221 answer for ionic solved it properly! |
This helped me with my Ionic project. |
For ionic 4 solved with: rm -Rf platforms/android |
implementation 'com.google.android.gms:play-services-places:15.0.1' chnge version to according to hint given on bubble |
mine one |
Can someone help me with the gradle build error? I tried reproducing all above mentioned steps, including the disabledVersion Check Flag, but its not working. FAILURE: Build failed with an exception.
Dependency failing: com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-co The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
BUILD FAILED in 1s my build.gradle on app level: def flutterRoot = localProperties.getProperty('flutter.sdk') def flutterVersionCode = localProperties.getProperty('flutter.versionCode') def flutterVersionName = localProperties.getProperty('flutter.versionName') apply plugin: 'com.android.application' android {
} flutter { My build.gradle on application level:
} allprojects { rootProject.buildDir = '../build' task clean(type: Delete) { ` I´ve added the google-services.json file aswell, as described by firebases instructions. |
I am facing the same issue. did you found any solution? |
So far I didnt 🙁
…________________________________
Von: justjcool <[email protected]>
Gesendet: Montag, 2. November 2020 12:17
An: OneSignal/OneSignal-Gradle-Plugin <[email protected]>
Cc: Barlium <[email protected]>; Comment <[email protected]>
Betreff: Re: [OneSignal/OneSignal-Gradle-Plugin] com.google.gms:google-services Compatibility Issue - com.google.firebase:firebase-iid is being requested by various other libraries at [[15.1.0,15.1.0]], but resolves to 16.0.0 (#37)
Can someone help me with the gradle build error? I tried reproducing all above mentioned steps, including the disabledVersion Check Flag, but its not working.
Output when I try to build:
`flutter build apk
You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK
size.
To generate an app bundle, run:
flutter build appbundle --target-platform android-arm,android-arm64,android-x64
Learn more on: https://developer.android.com/guide/app-bundle
To split the APKs per ABI, run:
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:processReleaseResources'.
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[19.0.
2]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-co
mmon@[19.0.2], but play-services-vision-common version was 19.1.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-ml-vision@{strictly 24.1.0}
-- Project 'app' depends on project 'firebase_ml_vision' which depends onto com.google.firebase:[email protected].
0
-- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.1.0}
-- Project 'app' depends onto com.google.firebase:firebase-bom@{strictly 25.12.0}
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:play-services-vision-image-label@{strictly 18.0.4}
-- Project 'app' depends onto com.google.android.gms:play-services-vision@{strictly 20.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.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 2.2s
Gradle task assembleRelease failed with exit code 1`
my build.gradle on app level:
`def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 28
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.WoerterbuchSchwaebisch"
minSdkVersion 21
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation platform('com.google.firebase:firebase-bom:25.12.0')
implementation 'com.google.firebase:firebase-analytics'
}
`
My build.gradle on application level:
`buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.4'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
`
I´ve added the google-services.json file aswell, as described by firebases instructions.
I am facing the same issue. did you found any solution?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#37 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJIO5Q4NIR3US4ITX45ZAGLSN2IL3ANCNFSM4FBQ42NA>.
|
I'm trying to fix this from the last 3 days. tried each and every solution but did not work. |
@justjcool @Barlium The important part of the error message is this part
This means you need to do one of the following:
This is just based on the error message in your log, OneSignal doesn't use Google's Vision libraries so it is out of scope of this repo / project. If that doesn't help recommend opening a question through Google's developer help channels or another more generic forum such as Stackoverflow. |
@jkasten2 Thanks! Worked. FYI: The disabledVersion Check Flag didnt change anything for me. |
After updating to the semantinc versioning the OneSignal Gradle plugin fails.
When I remove the OneSignal gradle plugin (v0.10.1) the sync succeed, otherwise it fails with the following error.
Full Error
Dependency Tree
The firebase com.google.firebase:firebase-iid package is referenced from the dependencies below.
The text was updated successfully, but these errors were encountered: