0

i'm trying to create my first flutter app but when i run it it gives me this error

FAILURE: Build failed with an exception.

  • What went wrong: Could not open settings remapped class cache for b4ieilm7vkknhwvoai8y4gzba (C:\Users\Emre.gradle\caches\5.6.2\scripts-remapped\settings_1vci5hthrjrgkv26gortq0d7w\b4ieilm7vkknhwvoai8y4gzba\settings8410a2d21ed2f87c8a0398566330ee52).

    Could not open settings generic class cache for settings file 'C:\JavaDemos\sea_ok\android\settings.gradle' (C:\Users\Emre.gradle\caches\5.6.2\scripts\b4ieilm7vkknhwvoai8y4gzba\settings\settings8410a2d21ed2f87c8a0398566330ee52). BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 57

  • 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 help.gradle.org

BUILD FAILED in 1s Exception: Gradle task assembleDebug failed with exit code 1

Kheseyroon
  • 110
  • 10

1 Answers1

0

Look at the answer here: Flutter build error for the first time :Could not open settings remapped class cache for 7yvt6la2007dno98lt3rzbguf

The problem is most likely the Java version you have installed.

Benedikt J Schlegel
  • 1,707
  • 1
  • 10
  • 23