-
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
Can't build on android anymore #1083
Comments
have been fighting the same issue for three days already |
Hello @SandroMoretti, I have been fighting all the day with that issue... My project cannot be updated to Cordova 8 either so I even decided to port to Ionic 4 (it was done with Ionic 3). So, with Cordova 8 and Ionic 4 after many errors I have arrived to the same point... The error that you have posted is related to Android 28, and the reason is because this library uses 'com.google.firebase:firebase-X:+' as a dependency and yesterday Firebase did a breaking release FB June 17 which forces to use Android 28... I have been playing with dependencies to see if I could workaround it but always got another error... Any help would be appreciated, thanks! |
Same here. I think It's because the plugin depends on https://developers.google.com/android/guides/releases Dropped support for API <28 |
Same problem too! I can't build on android anymore. |
I am having the same problem, now I cannot compile the app and get this error:
I'm on a really tight deadline and this breaks my project since it relies entirely on firebase. |
looks like this recipe helped me #1081 (comment) |
Same problem here. I've tried to update all dependencies with requirements at https://firebase.google.com/support/release-notes/android#20180523, and cordova android to 8.0.0, but with no success. When I remove cordova-plugin-firebase, it works. Here the error I get:
So can't build with firebase. |
This morning I'm already sweating as I saw the gradle downloading new maven files and to my expectations it all went boom! |
Same here. any solution please |
Solution I've taken from this comment #1081 (comment)
worked for me, hope will do for you too |
this is the best solution, with less "hacks" to do: #1081 (comment) (requires cordova-android@8) |
Thank you @igorkurochka , really work again. PS: I'm using cordova 6.5 and Android 7.1.4, so don't need to update to android 8 like dann told. |
@SandroMoretti i guess is good if you can update, do it.. cause this plugin will generate more headaches, since april im using a fork of the plugin, to solve a build issue, i was using cordova-android@7, seems some library that is dependency of this plugin is no more suporting API < 28, so its good to use cordova-android@8 that uses API 28... |
@dann95 , I know. I tried update. I don't know why, but I can't update my cordova. Npm just install cordova 6.5 here. Maybe is my outdated system (ubuntu 14). |
your Cordova cli is installed globally, you must remove it globally. "-g" xD |
Before cordova-plugin-firebase directory was 93,9 MB, now 1,30 MB. Same for you also? |
@pegasx |
cocoapod must be for "swift" it has been installed in my linux too, will investigate why |
about the size, idk what was the size before, but it seems to work. |
this solution worked for me, but I had to create a new project and copy all my files into that new project because using the steps in the link made more problems on the existing repository ... |
Thank you @igorkurochka , working again. |
@igorkurochka
|
@SandroMoretti I suggest reopening this issue. |
Hi @igorkurochka , I'm still facing this type of issue, can you please help me in that |
@pankajPizone have you deleted the gradle cache?
|
@SandroMoretti did you find any solution? |
@SandroMoretti maybe upgrading node version? try using nvm to be able to switch easily between node versions.. |
@pankajPizone can you show your config.xml with all plugins? |
@dann95 here is plugin in config.xml
|
@dann95 is it helpful to find issue? |
@pankajPizone i have no idea why, have u tried to remove and add platform again? |
@dann95 I have try many time. |
I have fixed these issue using two plugins
|
@pankajPizone i use this two plugins too, but i updated my cordova version, thats the reason to use them... |
I'm still having problems with this update:
BUILD FAILED in 58s
It looks like when i add a platform dependencies in build.gradle are right, but when i execute "cordova compile" it turns my dependencies into the wrong ones again.
|
I'm having the issue too for |
Mine is built successfully also with this solution, but it happens to be some kind of error which makes my app unusable. Is like if the plugins wouldn't be accessible, I added them correctly though. Actually adb logcat throws: |
@AurumLinux You should try to rebuild your app step by step starting with the commands in this comment... |
The problem was that I was adding the cordova-plugin-admobpro-firebase plugin instead of the cordova-plugin-admobpro. Now its working OK. |
cordova-plugin-firebase -> src -> android - > build.gradle change line no 20 com.google.firebase:firebase-auth:+ to com.google.firebase:firebase-auth:16.2.1 |
it works good with : ionic cordova plugin add cordova-plugin-androidx |
@fvadouko what android are you using? 7.1 or 8.0 ? any other compat libraries or fixes? |
I've struggled with this bug for a few days now. once I switched over to the fork from the linked comment, everything worked |
TOP 👏🏽 |
facing the same issue, need help |
Thank you @igorkurochka It works. I was struggling with this. |
I have the problem |
Thanks to @igorkurochka. It worked with my project. |
@igorkurochka its worked here as well thanks |
Worked like a charm :). Fantastic solution. |
Hi there, after working a while, I solved the problem with the Invalid Key: null issue. However, a new error message prompted:
If I downgrade 3 different libraries (play-services-analytics-impl, play-services-analytics and play-services-tagmanager-v4-impl) to the 16.0.8 in order to solve this issue, I get the " Crashlytics found an invalid API key: null." again. Obviously, I get the same message if I upgrade the "com.google.android.gms:play-services-tagmanager" to the 17.0.0 Any help? Here is part of my config.xml Any help on that? Thanks, Sergi |
thanks a lot man!! |
I was developing my application normally. I was able to build it 10 times today successfully.
However, I was compile again and now I can no longer run when the firebase plugin is in the project.
If I remove the plugin the project run.
Im using android@7.1.4 (can't update to 8.0.0)
The following build error occurs:
Anyone else having the same problem? Thanks.
The text was updated successfully, but these errors were encountered: