OneSignal / OneSignal-Gradle-Plugin

Use with OneSignal-Android-SDK to help integrate it into your Android Studio or Gradle project. https://onesignal.com
Other
64 stars 17 forks source link

Failed to apply plugin #152

Closed dhwalin closed 3 years ago

dhwalin commented 3 years ago

After upgrading to gradle 7

Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin class 'com.onesignal.androidsdk.GradleProjectPlugin'.

Using Capacitor 3, ReactJS, ionic-native onesignal

Gautammer commented 3 years ago

Same isssue! did you found solution?

dhwalin commented 3 years ago

Not yet. I have submitted issue to onesignal. Waiting for their reply.

crabbydavis commented 3 years ago

Also seeing this error. I'm using Capacitor 3, Angular, and the onesignal-cordova-plugin. Tried 2.11.2, 2.11.3 and 3.0.0-beta1, and got the same error for all three. Screen Shot 2021-05-25 at 3 51 23 PM

dhwalin commented 3 years ago

For some packages only I have to switch to Gradle 7. Working in Gradle 6... So if developers do not need 7 for any other package, they can switch to lower version of gradle.

alainm23 commented 3 years ago

I'm using Capacitor 3, Ionic 5, onesignal-cordova-plugin@2.11.1, @ionic-native/onesignal@5.30.0 and I just downgraded to gradle to version 6 and everything worked fine.

File -> Project Structure -> Project

image

crabbydavis commented 3 years ago

@dhwalin @alainm23 thanks for the help! My project is running with Gradle 6. Guess I'll run with that until One Signal gets the plugin working with Gradle 7

Gautammer commented 3 years ago

Oh i didn’t had time , so i gone with cordova..

Elardzhi commented 3 years ago

Works on Gradle 6.9. Capacitor 3 recommends using Gradle 7. Waiting OneSignal to be updated.

ba6ba commented 3 years ago

Are we going to have any update on this. OneSignal Team?

jkasten2 commented 3 years ago

Thanks for reporting! Gradle 7 compatibility has been added in version 0.13.0.

This version should automatically be available then next time you do a clean build.