I keep getting this error and i don't seem to find any help online. I am new to flutter and android studio. any help is well appreciated
FAILURE: Build failed with an exception.
Where: Build file 'C:\Android\Android Studios\cravings\android\app\build.gradle' line: 26
What went wrong: A problem occurred evaluating project ':app'.
Could not open dsl remapped class cache for eq9b73nqpstq0kplnrtticwqc (C:\Users\October Price.gradle\caches\5.6.2\scripts-remapped\flutter_f2f86ofj12jp9hosmvp06kahh\eq9b73nqpstq0kplnrtticwqc\dsl9d9bdfa13168004751655a79e56a065e). 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 1s Finished with error: Gradle task assembleDebug failed with exit code
You can try running the assembleDebug
Gradle task manually.
cd android
./gradlew assembleDebug --stacktrace
But there could be something wrong with your configuration.
Run flutter doctor -v
and see if everything is setup correctly.
Otherwise you can try deleting the Gradle cache folder which seem to bet at C:\Users\October Price.gradle\caches
.
You can set your android compiler to always run with --stacktrace
modifier.
--debug
or --info
or --stacktrace
(Or combination of them) to the Command line options
In your case clearing C:\Users\October Price\.gradle\caches
folder and re-syncing the project might help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With