So I installed flutter and I initialized an app I run the app it say's
Launching lib\main.dart on AOSP on IA Emulator in debug mode... Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
Where: Build file 'C:\src\projects\myapp\android\app\build.gradle' line: 26
What went wrong: A problem occurred evaluating project ':app'.
Could not open dsl generic class cache for script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' (C:\Users\admin.gradle\caches\7.5\scripts\6retkvb9i1tmrre8676t631o1). Unexpected lock protocol found in lock file. Expected 3, found 0.
- 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 5s Exception: Gradle task assembleDebug failed with exit code 1
so I checked if I have problem with installation with flutter doctor and it show's this
I already have system image and when I run the program it always shows the error and the app doesn't run I already tried setting the JAVA_HOME and copying the jbr files to jre but still get the error. Thank you for your response