-
-
Notifications
You must be signed in to change notification settings - Fork 882
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]: What went wrong: Execution failed for task ':device_info_plus:compileDebugJavaWithJavac'. > error: invalid source release: 17 #2809
Comments
It is not a bug, but an issue with your configuration. It is explicitly mentioned in changelogs that plugin now requires Java 17: https://pub.dev/packages/device_info_plus/changelog#1001 At the same time in your flutter doctor output I see that you use Java 11:
You need to update your JDK. |
Hi @vbuberen! Thank you for this as it helped me resolve this locally, however, I get this error in my CircleCI/Fastlane setup. I've tried adding a step to installing JDK 17 but to no avail. Do you have any resources on how I might be able to resolve this on CircleCI + Fastlane? |
This is not the right place to discuss as this issue doesn't relate to the plugin, but 3rd party services. You need to install JDK 17 and set your runner to use it. There is enough information about it in Google: https://discuss.circleci.com/t/upgrade-java-to-jdk-17/46349 |
|
Platform
Android 13
Plugin
device_info_plus
Version
10.0.1
Flutter SDK
3.19.5
Steps to reproduce
import 'package:device_info_plus/device_info_plus.dart';
Future<bool> isSdk30OrHigher() async { AndroidDeviceInfo build = await DeviceInfoPlugin().androidInfo; return build.version.sdkInt >= 30; }
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: