Closed ghonche closed 2 years ago
That's a bug on cordova-plugin-badge
plugin, that has not been updated for 4 years and it's not compatible with Gradle 7, not a Capacitor bug.
The plugin author fixed it in the master branch, but never released the changes on npm, so you can uninstall the plugin and reinstall from github
npm uninstall cordova-plugin-badg
npm install https://github.com/katzer/cordova-plugin-badge
npx cap sync
I removed cordova-plugin-badge
. The problem still exists.
It turns out @awesome-cordova-plugins/local-notifications
is causing the error. Which has not been updated since 2019 and the latest version is a beta version! removing this plugin (which is also dependent to cordova-plugin-badg
) solved the issue.
I have the same error as @ghonche.
I have the same error as @ghonche.
Can you remove @awesome-cordova-plugins/local-notifications
?
I need the plugin so I shouldn't remove it. @ghonche
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
Platform(s)
Android
Current Behavior
I migrated from Capacitor 3 to Capacitor 4 using docs:
npm i -D @capacitor/cli@latest
npx cap migrate
And followed all the steps for Android migration. When syncing project with gradle in Android Studio, I get following error:Expected Behavior
I expected the project to sync and build successfully after migration.
Code Reproduction
Other Technical Details
jcenter()
from gradle files.Android Gradle Plugin Version: 7.2.2
Gradle Version: 7.4.2
npm --version
output:8.19.2
node --version
output:v14.20.0