-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 12.0.1. #1026
Comments
here is an interesting thread: invertase/react-native-firebase#1155 as a temporary workaround I did this:
at android/app/build.gradle |
disabling the check is not a solution because the dependent library is requesting 15+ |
Hi! I'm having the exact same issue where "com.google.android.gms:play-services-basement is being requested at 15.x but being resolved to 12.x" . What do you mean by "google service repo?" @evollu ? |
does this help? |
I have same problem here. Has anybody solved this issue? |
The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 12.0.1 |
Try the following (android\build.gradle) add
(android\app\build.gradle) tell your dependencies to exclude the groups you are using different versions for
(note "compile" may be "implementation" depending on your build tools |
Having same issue: |
I am facing same issue...
i installed this project few days ago and everything was working fine. I do nat make any changes in my gradle files after that!!! but today It gives "BUild failed"!!! |
Hi All, Failed to capture snapshot of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check.
|
Got the same error as @TarunKasera2401 today, without touching any .gradle files at all. The build was fine yesterday :/. Added this in my (project) build.gradle file, and now it builds:
But I would really like to know why this happened in the first place.... |
This did the trick! |
Hi dongcp,
I have update the |
Hi All, com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true And it's working fine. |
What file is that, gradlew- ? I have none |
It's |
I had the same issue and I think the problem is with the 16.0.1 version. I downgraded to 15.0.1 and it works fine! |
I had the same issue. Refer this link: https://stackoverflow.com/questions/50577437/com-google-android-gmsplay-services-measurement-base-is-being-requested-by-vari. All you have to do is to keep up to date with the latest sdk versions: https://firebase.google.com/support/release-notes/android#20180523 |
To see the dependency tree of libraries in your application, use:
In amongst the noise you'll see entries like
For the entry for react-native-fcm/android/build.gradle Lines 32 to 36 in 508366d
For any version clashes, exclude the groups in your
to
You can confirm this is done by re-running
If you exclude all entries from your dependent libraries, you will need to compile your specific version. I force it to compile those excluded 2 like:
|
Worked for me too. Thank you. But I also feel like there could be a better solution. Again, thank you |
@Dansziel disabling the version check shouldn't be needed, and may end up masking a problem. If you post
It should be clear how to resolve your compile problems. |
#1026 (comment) |
That won't work if a dependent libray includes a specific, and clashing, version, and is not excluded. If it does work, great! If not, you have to be explicit about which version to compile and link |
In my case : project : build.gradle ->
Notice the order of google() then maven and finally jcenter() And then finally in app/build.gradle -->
Hope this helps some one stucked |
|
In my case I followed @pradeep9868 example and also made sure to have latest version of the dependencies in app/build.gradle. Here's the list for both play-service and firebase Hope it helps |
Hi All, i solved using classpath 'com.google.gms:google-services:4.2.0' |
Worked for me |
@dariolr knows what's up |
I've been working this out for dozen of minutes and I found a trivial solution that may help others. In my build.gradle(Module:app) |
Try to change this in (project) build.gradle |
Just solved this by using |
I've had the same issue. For whatever reason the play-services-basement library is no longer available in jcenter: https://jcenter.bintray.com/com/google/android/gms/play-services-basement/15.0.1/play-services-basement-15.0.1.aar In the google repository the version 15.0.1 is still available though. I have declared the google() repository before jcenter() in your build.gradle file and it should work allprojects { |
I used the firebase-core last version, which is now 16.0.6 like this: |
Hi All, Failed to capture snapshot of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check. The library com.google.android.gms:play-services-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. in ionic |
Can you share the code please |
Thanks for mentioning the order of repositories @pradeep9868 |
Worked for me! |
to change from 16.0.1 to 16.0.4 make it build successfull but the app gets crashes |
This works on debug mode but crashes on release. |
I'm working with Flutter, not RN, but it's really just an Android / Gradle thing. Unfortunately, 16.0.1 is still referenced in the Firebase app registration wizard, along with google-services 4.0.1. Which is different from the Android setup doc, which has the latest versions (google-services 4.2.0 + firebase-core 16.0.6). Meanwhile the, Flutter Firebase setup doc states that the current Flutter-compatible version of google-services is 3.2.1, although it seems to also work with 4.0.1 and possibly 4.2. What a mess! |
If anybody is still facing this problem, use the latest version of dependencies and classpath from |
This was what worked for me: (the force lines) ext {
googlePlayServicesVersion = "15.0.1"
}
allprojects {
repositories {
mavenLocal()
maven { url 'http://maven.google.com' }
jcenter { url "http://jcenter.bintray.com/" }
google()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
configurations.all {
resolutionStrategy {
force "com.google.android.gms:play-services-basement:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-tasks:$googlePlayServicesVersion"
}
}
}
} |
This helped me with my Ionic project. |
In my case, i was using an old FirebaseUI library version. Use FirebaseUI-Android release notes to match the compatible versions |
The only solution which solved my problem. |
If you are using the latest Android Studio, hover your mouse over each of the dependencies with the error and it will suggest to you the latest version of each library. Manually change to the latest version and run sync again |
|
In your root-level (project-level) Gradle file (build.gradle), check that your Google Services plugin version is up-to-date In your module (app-level) Gradle file (usually app/build.gradle), check that your Firebase Android library versions are up-to-date. |
i changed the firebase suggested version and it compiled again |
Thank you. It work for me |
This:
Thank you, @ChandanNaik999 ! |
Thanks. it worked for me as well |
lajodaka |
ne yabba inko place emi dhorakaledha ra neku lanjodaka |
That worked for me as well |
This is a fix. Along with this; you may need to enable multidex support. Add the library inside the dependencies and change default config to enable multidex. app/build.grandle:
|
Issue
Hey, now i have an weird compiling issue in Android Studio.
this is the output:
This is super weird. I have no idea where this is comming from.
tried to clean the build and rebuild as well.
For completeness, those are my files:
settings.gradle
build.gradle
app/build.gradle
Environment
high sierra
android Studio 3
The text was updated successfully, but these errors were encountered: