Saturday, June 24, 2023

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Error in android

I got the below error while running my android project :

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script7.groovy: 1: unable to resolve class

To solve this error I have to upgrade my jdk. To upgrade the jdk, you can follow the below steps

From File menu -> Project Structure -> SDK Location -> JDK location Drop down menu choose:
Embeded JDK c:....\jre


or you can upgrade the jdk to latest jdk by clickiing on upgrade to latest jdk. You can upgrade jdk from Gradle settings also.

This solves the above error. 

No comments: