-
Notifications
You must be signed in to change notification settings - Fork 501
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
[Help]: example app fails to build with what looks like a gradle version error #1101
Comments
I don't see 3.22.4 Flutter in the releases https://docs.flutter.dev/release/archive |
@freemansoft could you please post the output of your Though I may agree that we need to regenerate the sample app for Android. |
Sorry about the typo
flutter doctor with 3.28.0
The deprecation warnings under 3.24.2
|
@freemansoft these deprecation warnings are due FBP using Java 8 source/target and the recent android gradle plugin seem to be deprecating support for Java 8.
@chipweinberger @tnc1997 do we need to support older android gradle plugin versions? |
FBP aims to be backwards compatible with older android phones. Same minSdk as flutter. And aims to be compatible with Flutter versions from the last ~2 years |
Compatibility with Android target is not an issue. |
https://developer.android.com/google/play/requirements/target-sdk
Am on a corporate project where we just updated our Android app to be Java 17 and are moving to gradle 8. This was forced by the store policy and by some 3rd party libraries Flutter libraries that we wanted to use that required 17. |
@freemansoft same here. Though I can still use AGP 7 and older gradle to publish Android API 34 targeted app. |
Yes, we are still using the older gradle with Flutter 3.24.2. We just ignore the deprecation warnings like the "java 8" warnings. The example compiles fine ignoring the warnings. I thought that Google is driving people to use AGP 8 and the later gradle as shown by my failure to compile the example with Flutter 3.28. This isn't my area of expertise so I reserve the right to be wrong! |
closing. i dont think we need to change anything. |
Requirements
Have you checked this problem on the example app?
Yes - the example app won't compile/run
FlutterBluePlus Version
1.34.5
Flutter Version
3.22.4
What OS?
Android
OS Version
n/a
Bluetooth Module
n/a
What is your problem?
The example won't compile
rathole alert
If I delete the
android
directory and recreate it withflutter create --template=app --platforms android example
then I get a version of the example that builds and runs without issues. Regenerating the example has the advantage of upgrading the Android example app migrates frombuild.gradle
tobuild.gradle.kts
. This also eliminates theYour applying Flutter's app_plugin_loader Gradle plugin imperatively
messages.One of the things about regenerating the android project is that flutter's templates now set the
targetSdk
andminSdk
to be that of the flutter version you are building with rather than 21 and 34 as is currently set in the example app.Logs
The text was updated successfully, but these errors were encountered: