Open Prafulpatnecha opened 1 month ago
I have the exact same error
I regularly encounter such issues. Often solved it for me, opening the android folder (File→Open..→android) as a separate project. Probably not necessary: I regularly update to newer Android Gradle plugin version, when recommended in that view. Then using the project structure dialog, but only for the “app”, did set the SDK to 34 in my case and the tool's entry to the fitting version 34.0.0, Source comp rests in 1.8. Did not touch the other modules like path_provider_android. Then positioned the cursor on app in project view. Did Go to Build→Make Module 'android.app'. I played around with the errors until it build successfully.
Thanks for the feedback! If your issue is related to the Flutter framework itself, please open an issue at github.com/flutter/flutter.
Steps to Reproduce
Please tell us what you were doing and what went wrong
Version info
Please paste the output of running
flutter doctor -v
here (available from the command line or fromTools > Flutter > Flutter Doctor
). It will provide the version of the Flutter framework as well as of the IntelliJ plugin.Packages are not working in the new version of Android Studio and the app is not running in emulator and other device. It was working properly in the old version of Android Studio but in new version https://pub.dev/ (package ) he is not working
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':path_provider_android:compileDebugJavaWithJavac'.
Try:
BUILD FAILED in 5s Error: Gradle task assembleDebug failed with exit code 1