unable to load class 'org.codehaus.groovy.runtime.typehandling.shorttypehandling'
martinvandzura opened this issue · 2 comments
Not sure whether this is project issue or android studio issue but it happens only with this project so I am reporting it. When project is opened in android studio it displays error:
Failed to sync Gradle project 'u2020'
Error:Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'.
Possible causes for this unexpected error include:
- Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network) - The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart) - Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
It builds fine via command line.
Android studio 1.3 but it happened also with previous versions too.
This is most definitely a problem with your local Gradle install. Try removing the .gradle
folder in your home directory so it's forced to redownload itself and then re-import into your IDE (or re-build from CLI). Works fine here in AS 1.2.2 and AS 1.3 with the included wrapper.
Check your jdk version! The not-found class should be found in the version of the used jdk! The newest jdk does not always contain the missing class!