I would like to ask some help regarding Android Studio. It is my first time dealing with Android app development and I don't have much experience with being a developer neither. I'm still new to this environment. Nevertheless, I find this activity fun and it served as a safe space for me to waste my time on.
This problem of mine does not relate to the code but to the IDE itself, and I have been troubled by it for the past three days. I have looked up all the questions that could be similar to mine, but not one answer have helped me.
I made a "Hello World" project (I haven't done anything yet), but every time I run it, I always encounter this problem:
Task :app:preDebugBuild UP-TO-DATE
Task :app:compileDebugAidl NO-SOURCE
Task :app:generateDebugBuildConfig UP-TO-DATE
Task :app:compileDebugRenderscript NO-SOURCE
Task :app:javaPreCompileDebug UP-TO-DATE
Task :app:generateDebugResValues UP-TO-DATE
Task :app:generateDebugResources UP-TO-DATE
Task :app:mergeDebugResources UP-TO-DATE
Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
Task :app:extractDeepLinksDebug UP-TO-DATE
Task :app:processDebugManifest UP-TO-DATE
Task :app:processDebugResources UP-TO-DATE
Task :app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not create service of type DefaultGeneralCompileCaches using GradleScopeCompileServices.createGeneralCompileCaches().
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.<129 internal calls>
Caused by: org.gradle.internal.service.ServiceCreationException: Could not create service of type DefaultGeneralCompileCaches using GradleScopeCompileServices.createGeneralCompileCaches().<78 internal calls>
...126 more
Caused by: java.lang.IllegalStateException: Unexpected lock protocol found in lock file. Expected 3, found 0.<20 internal calls>
...203 more
* Get more help at https://help.gradle.org
BUILD FAILED in 25s
9 actionable tasks: 1 executed, 8 up-to-date