BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65 해결 방법 찾기
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* Where:
Settings file 'D:\android\testApp\android\settings.gradle' line: 11
* What went wrong:
A problem occurred evaluating settings 'android'.
> Could not open dsl generic class cache for script 'C:\flutter\packages\flutter_tools\gradle\app_plugin_loader.gradle' (C:\Users\mycom20\.gradle\caches\7.5\scripts\99ckx1rbgkr7yjkhzpywa5fpg).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using │
│ for Gradle. │
│ │
│ If you recently upgraded Android Studio, consult the migration guide at │
│ https://flutter.dev/to/to/java-gradle-incompatibility. │
│ │
│ Otherwise, to fix this issue, first, check the Java version used by Flutter by running `flutter │
│ doctor --verbose`. │
│ │
│ Then, update the Gradle version specified in │
│ D:\android\testApp\android\gradle\wrapper\gradle-wrapper.properties to be compatible with that │
│ Java version. See the link below for more information on compatible Java/Gradle versions: │
│ https://docs.gradle.org/current/userguide/compatibility.html#java │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
댓글
댓글 쓰기