Skip to content
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

Getting a build error - me.leolin:ShortcutBadger:1.1.22@aar #377

Open
richardkshergold opened this issue Sep 6, 2022 · 3 comments
Open

Comments

@richardkshergold
Copy link

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?

@TheWieand
Copy link

TheWieand commented Sep 6, 2022

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.

@SadiquaAnjum
Copy link

Facing same issue. Could somebody please update the library and release a newer version?

@kalwinskidawid
Copy link

Same here, maybe there is a new plugin fork?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants