-
-
Notifications
You must be signed in to change notification settings - Fork 940
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
[Bug]: flutter run error from #3142
Comments
Facing similar issues with 3.24 It appears the plugin needs the build.gradle and settings.gradle updated to the new flutter way of building. The exact error is: -
This indicated it is not compatible with Android platform 31 Ad support. |
I cannot reproduce the issue, the example project builds for me on Flutter
Compiled using
|
OK let me strip the compile down to a simpler app and see if I can get to the bottom of it, I think something changed in the gradle build that is breaking it, maybe something missed when I upgraded our main app. I will report back after some testing |
I could also build your example app just find but not any other app using the plugin. I recreated the issue with another simple plugin using your gradle files and was able to reproduce the issue again. Adding the following to the apps main build.gradle resolves the issue: - ext { you can also add in your plugins build.gradle the following, which also resolves the issue: - configurations.all { |
I also tested on a newly created project:
|
Yeah I think it only affects projects built in older flutter versions, even when updating their Gradle builds. There is for sure some breaking change that is not documented (or at least I can't find it) with 3.24. I am doing some more digging with our own internal plugins to see if I can get to the root of it. |
OK found the breaking change that does it, which is why newer apps work off the bat. Applying this to the application makes everything work: - This does not require setting android core version. Thanks for your help, it helped point me to the correct solution and fixed the 'stop using imperative build in Gradle messages that have been on my todo list for a while ;-) |
Thanks for the link! I wasn't aware of it, it will come handy for people with Android compilation issues. |
Platform
Android 15
Plugin
package_info_plus
Version
8.0.1
Flutter SDK
3.24.0-0.2.pre
Steps to reproduce
Unless it is not applicable, the error is always reported
Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: