-
Notifications
You must be signed in to change notification settings - Fork 1k
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
bug: npx cap sync android breaks the ./gradlew bundleRelease #5820
Comments
I've been testing and it wasn't working on Capacitor 3 neither, using bom dependencies was not supported on cordova until cordova-android 11, released less than a month ago. |
@iamromec , just FYI, when I downgrade the cordova plugin, it worked on my end. |
@priyankpat I need to use the firebase messaging plugin, not cordova-plugin-firebase-config. Have you installed messaging plugin? |
Also, @prosidney, could you share your package.json file, please? I'm using the latest ionic with angular. |
sure,
|
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 4.0.1
@capacitor/core: 4.0.1
@capacitor/android: 4.0.1
@capacitor/ios: 4.0.1
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 4.0.1
@capacitor/core: 4.0.1
@capacitor/android: 4.0.1
[success] Android looking great! 👌
Platform(s)
Android
Current Behavior
After upgrade to capacitor 4, everytime I run npx cap sync android, the cli is changing 2 lines on both build.gradle (reference below) in a way that my next command ("./gradlew bundleRelease") won't run.
android/app/capacitor.build.gradle
android/capacitor-cordova-android-plugins/build.gradle
Output after running ./gradlew bundleRelease
Execution failed for task ':app:checkReleaseDuplicateClasses'.
Expected Behavior
The lines should be like this
implementation platform('com.google.firebase:firebase-bom:30.3.1')
instead of
implementation "platform('com.google.firebase:firebase-bom:30.3.1')"
if I change it manually afterwards, it works.
Code Reproduction
The problem starts when adding cordova-plugin-firebase-* dependencies which include the Firebase Android BoM (Bill of Materials) ( I have many ).
I've created a minimal reproduction here:
https://github.com/prosidney/reproduce-ionic-platform-issue
Other Technical Details
npm --version
output: 8.15.0node --version
output: v18.7.0pod --version
output (iOS issues only):Additional Context
Firebase Android BoM (Bill of Materials)
https://firebase.google.com/docs/android/learn-more#bom
The text was updated successfully, but these errors were encountered: