-
Notifications
You must be signed in to change notification settings - Fork 17
Flutter 2.10 build failed #184
Comments
I hope there are updates to this issue |
I moved the code "classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.6, 0.99.99]'" into "android/build.gradle" and added the onesignal in "android/app/build.gradle" I deleted the codes and it was fixed. There is no problem with the notification process, it continues to work. Just add apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' to "android/app/build.gradle" file. |
did not worked with me :/ |
Can you share the content of "android/app/build.gradle" file |
Looks like there is dependecy of onesignal plugin on flutter_tools. The solution is to place onesignal plugin after it in the sequence in the "android/app/build.gradle": apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" |
Worked for me. |
@dineralex One signal's documentation specifically says to keep the plugin above the And flutter gradle has to be kept after this |
Getting
However if the order of the one signal plugin is moved after flutter gradle, the error doesn't come, but the notifications aren't delivered in release signed apk. |
Worked for me on removing the plugin from app/build.gradle. Just having the classpath in project/build.gradle and the library dependency app/build.gradle. |
to me i fix this by upgrading the kotlin in android\build.gradle from
then i did |
none of the above worked with me :/ |
I upgraded to 4.6.7
Problem Solved for me! |
@rabihmb does that just allow it to compile, or do push notifications work with a release-signed build? (That's been reportedly still an issue with your proposed solution.) |
Nothing of the workarounds here works for us. We're forced to move down to flutter 2.8 and kotlin 1.5, but this is causing other kinds of trouble. I'd like to kindly ping @jkasten2 in case you're not aware of this particular bug. I assume this is preventing everyone to upgrading flutter, or I'd be happy to learn a working recommended workaround. |
UpdateThanks for reporting, we will look into the issue. WorkaroundIn the meantime you can omit this Gradle plugin ( If you need help resolving specific Java library conflicts after removing BackgroundThe native Android part of OneSignal has two pieces:
|
@jkasten2 any update on this? |
6 weeks later... any update on this??? |
@jkasten2 any update on this? |
@westy92, @uj, and @Aksoyhlc However as noted above, Given the above, if you are seeing an issue with |
Thanks for the answer. OneSignal/OneSignal-Flutter-SDK#462 is there going to be an update in this, it's a very important issue. |
@jkasten2 I am a bit confused about your latest message
I am not sure that means we can just drop the plugin. Dependency mismatches sounds like a dangerous thing. What dependency mismatches precisely? Can we update firebase dependencies freely? Is it possible that we see runtime errors even if the app builds, depending on particular firebase versions? Before pouring costly dev hours to find those answers out, could you please provide a more comprehensive list of things to check? Or could you just please push this fix so we don't need to dig this? Thanks |
@dgilperez We have seen less incompatibility issues with
To make sure you are always using compatible set of Firebase libraries Google recommends including
Yes this is possible, normally if there is an issue it will happen on start up, but sometimes it won't happen until a specific feature is used.
Most of the rules in this plugin are for Firebase, and a number of them only apply to very old projects, but you can check out all the definitions here: |
Thanks a lot for your thorough response @jkasten2 - we will take it from there. |
@saurabhdtu |
is there a simple, straight solution to this or just not? |
@fmdogan
in app level
Then see if you can follow my implementation that I have described -->>>>> here.. It has the native side implementation. Flutter/React native side implementation has to be handled |
thank you @dineralex it worked |
Looks like there is dependecy of onesignal plugin on flutter_tools. The solution is to place onesignal plugin after it in the sequence in the "android/app/build.gradle": apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" thank you it work! |
I have seen in some answers that placing the plugin after can prevent it from working properly, is this really a solution? |
Please read here:
https://stackoverflow.com/questions/71003124/flutter-cannot-run-project-afterevaluateclosure-when-the-project-is-already-ev/71009865#71009865
The text was updated successfully, but these errors were encountered: