-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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.firebase:firebase-iid is being requested by various other libraries at [[17.1.1,17.1.1]], but resolves to 19.0.0. #1081
Comments
Same. Google released new libraries yesterday which has for effect to break the build: https://firebase.google.com/support/release-notes/android#update_-_june_17_2019 or https://developers.google.com/android/guides/releases I'm currently trying some ideas provided in #1057 but no luck so far |
Same here... getting tired of this Google moves every few months... |
Same error since this morning |
my configurations are |
As m reading my build gradle version is 3.0.1 which is less than 3.2.1 and my compile sdkVersion is 27+ so just changing the settings for firebase messaging to the 19.0.0 version will not help.
|
Same issue here, tried to force firebase-iid version to 17.1.1 everywhere, but having another issue related to dex merge this time. |
I think I've got it...let me double check |
I solved the issue. The root problem is the wild card dependencies and the fact that, as I mentioned above, Google updated several libs yesterday. Furthermore than the Here how I was to solve the issue for my apps:
Providing UPDATE while this solution works great for the Cordova CLI v8. If you are using the CLI >= v9, or willing to migrate, have a look to the cleaner solution #1081 (comment) provided @dpa99c here below |
@peterpeterparker What is the gradle version you are using? |
@Kasun002 same |
I have updated all the things you have mantioned (Also use the gradel version 3.3.0) but getting same error.in aditionally you mentioned i'm using |
You are probably using another plugins and therefore another dependency in your case should be fixed too Have a look at the release notes from Google https://developers.google.com/android/guides/releases and try to identify which dependency you need to set In my above code I used dependencies released <= March 27, 2019 |
Thanks @peterpeterparker , it worked perfectly! |
@peterpeterparker thx for workaround, can you also help me a bit? |
@denisnarush |
Thank you @peterpeterparker it works it's great. |
Update 21 June 2019 See my updated solution below. Original comment Here's a solution which doesn't involve any local hacking of this plugin.
Note: this solution requires you to use the latest version of the For example:
console output
|
@dpa99c I <3 you. Where to send a beer?))) |
@dpa99c will test it here, curious that i'm already using this:
you'r saving my life for second time HAHAHAHHAHA |
@dpa99c ofc i will donate when i get home, u are my github issue hero ahhaahah |
Thank you Dave. When I install it on emulator, I see a notification: " App won't run unless you update google play services". Is that normal? |
Presumably the new Play Services/Firebase library versions have a minimum version requirement for the installed core Play Services component. |
And before cordova-plugin-firebase directory was 93,9 MB, now 1,30 MB. Are these ok? And why cordova-plugin-cocoapod-support installed while cordova-plugin-firebase plugin was installing? |
My fork incorporates (among other fixes) the yet-to-be-merged PR #972 which uses Cocopods to satisfy the Firebase SDK library dependency on iOS rather than bundling a static snapshot of the SDK with the plugin. This makes it much easier to update the Firebase library version on iOS by simply bumping the Cocoapods version in the |
After downgrading dependencies I get:
|
Hi @dpa99c, We seem to be getting this when building our app through our CI/CD but not when running the build manually. Do you have any idea what could cause this? This is after installing the above plugins as suggested.
|
was struggling with this error for 3 days. Finally this worked ! |
I get now this error
|
@nelson6e65 the errors indicate there are still code references to the Android Support Library in the source code of your Android project. It looks like you have I suggest running
|
@dpa99c Thanks. I figured out. Now compiles, but the app gets stuck in the splash screen. 😖 |
pay attention to the simplest solution which doesn't require ANY PLUGINS modifications: |
where can i find |
@ansarikhurshid786 put it inside the build gradle file, look for it inside the android platform folder. we have a cordova script which copies build-extras.gradle file to android platform. however to first check that compilation works just add it inside the gradle file inside android platform folder manually |
in which gradle file :
|
Hello. Thanks for the answer. I did the steps described but now I get the following error:
|
I did add the cordova-plugin-androidx-adapter plugin, and now i get the follow errors.
|
|
@dpa99c - once again you have saved my bacon. Was dealing with the same issue for the last 2 days and for some reason when researching the issue google has not indexed this issue so it wasn't coming up in searches - no other solution was working for me (and there weren't many). Only when I came directly to this repository did I find this thread. Thank you thank you thank you....sent you about 100 beers last time, probably going to send another 100 soon! |
If you are using ionic this solution worked for me |
Thanks for that almost works for me with the cordova-plugin-firebasex and cordova-plugin-androidx-adapter! But after that my firebase analytics and pushnotifications on android not working anymore. |
@DanTTea - were you originally using cordova-plugin-firebase or cordova-plugin-firebase-lib ? If the later you may need to rewrite some of your firebase functions to match the class/library calls used in |
@DanTTea - the two plugins are very very similar as I think the |
I used the cordova-plugin-firebase with the @ionic-native/firebase wrapper. |
@DanTTea - you should always be able to. I use Ionic v1 still...I install all my plugins without the Ionic wrapper and use the native plugin calls. |
Hi Everyone, I was able to build both Android and iOS following these steps. However, when I run on Android, I get an error that says that Firebase Plugin is not installed. Does that make any sense? Has anyone faced this before? Thanks and regards, |
I have the same issue once i tried a new build
|
I have the same issue but I finally got the solution here are the steps:
|
USING: |
It worked!!! |
I tried the above solution and I am getting following error: What went wrong:
Command: /private/var/root/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-alpha17-4804415-osx.jar/43333eb3f22700b3ea00948099587db3/aapt2-3.2.0-alpha17-4804415-osx/aapt2 compile --legacy cordova plugin ls Any idea what am I doing wrong? |
Here's how i resolved mine:
Run & Build again |
Describe the bug
I think it is problem with the firebase version. The project was working till now and suddenly started showing error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build successful
Screenshots
Console Logs
The library com.google.firebase:firebase-iid is being requested by various other libraries at [[17.1.1,17.1.1]], but resolves to 19.0.0.
Plugin Version
using
Additional context
The build was working fine yesterday.
The text was updated successfully, but these errors were encountered: