You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After migrating our Ionic project from Capacitor 3 to Capacitor 4 (see migration guide) we're getting a build error when building for Android:
Our app uses the cordova-plugin-badge plugin which in turn seems to rely pon ShortcutBadger?
The error we get is:
* Where:
Script '/builds/rks/myApp/node_modules/cordova-plugin-badge/src/android/badge.gradle' line: 28
* What went wrong:
A problem occurred evaluating script.
> Could not find method compile() for arguments [me.leolin:ShortcutBadger:1.1.22@aar] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Any ideas what we need to do?
The text was updated successfully, but these errors were encountered:
It's not a real fix, but at least I managed to get rid of the error.
In the files node_modules/cordova-plugin-badge/src/android/badge.gradle and node_modules/cordova-plugin-local-notification/src/android/build/localnotification.gradle replace "compile" with "implementation".
But it will propably disappear once you run npm install again.
After migrating our Ionic project from Capacitor 3 to Capacitor 4 (see migration guide) we're getting a build error when building for Android:
Our app uses the cordova-plugin-badge plugin which in turn seems to rely pon ShortcutBadger?
The error we get is:
Any ideas what we need to do?
The text was updated successfully, but these errors were encountered: