Closed iXane closed 2 years ago
Anyone?
Same problem here.
Anyone?
Same problem
@josemmora @tavosansal @iXane You can safely ignore the following message in your build log:
Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin@4b6b168d' is not a valid version number
OneSignal Warning: Could not get AGP plugin version
See more details here on this https://github.com/OneSignal/OneSignal-Cordova-SDK/issues/709#issuecomment-911975291
@iXane Since you are using Ionic Capacitor which uses the OneSignal-Cordova-SDK it automatically includes the integration for this Gradle plugin, see: https://github.com/OneSignal/OneSignal-Cordova-SDK/blob/main/build-extras-onesignal.gradle#L24 By adding it again it might be causing the other odd build error about "'abstract java.lang.Object getProperty(java.lang.String)' of interface groovy.lang.GroovyObject.".
Hi!
Hope everyone is well, since last Thursday or so, my project won't compile in android studio. I've been getting the Error on the title, this error comes out immediately. I'm unable to sync gradle, clean or rebuild. the project. Nothing was changed on the project.
The Project is buiilt on Ionic Capacitor 2/Angular.
I've tried many troubleshooting, invalidating cache, changing Gradle and AGP versions, Rebuilding, re-installing, removing node_modules and re-adding everything again, changing versions and nothing will work. I've jettified my proiject, even upgraded to Gradle 7 and while in Gradle 7 it compiles, the rest of the project becomes a mess and doesn't work properly since most of the components mostly run up till Gradle 6.
Upgrading to Capacitor 3 to make OneSignal work is currently not the most feasible way since there would be a lot more involved other than getting the plug in to work.
The only way I can get my project to work is by commenting the following lines in app/build.gradle.
I added the plugins { } section as specified on the doc: https://documentation.onesignal.com/docs/troubleshooting-android
I've tried installing most of the android build tools and sdks and no success (the ones targeted by the project).
I honestly ran out of options, no issues on iOS and before last thursday when I uploaded an update to the play store, everything was and is working fine there. Even going back a month in the branch, still doesn't work.
Android Studio V4.2.1 Gradle: 6.9 AGP: 4.2.1
Ionic Information
Project Setup
build.gradle
app/build.gradle
Variables.gradle
Full Error
Dependency Tree
Run
./gradlew app:dependencies