Getting Resolve error while importing project in android studio, Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'

后端 未结 4 1320
孤城傲影
孤城傲影 2020-12-23 20:27

I am not able to import a project in AndroidStudio because of following error:

Unable to load class \'org.codehaus.groovy.runtime.typehandling.ShortTypeHandl         


        
4条回答
  •  感动是毒
    2020-12-23 20:57

    Apparently 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling' does not work with the new version of Gradle.

    Change your project settings so that your project points to an older version of Gradle, like this:

    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'
    }
    

    EDIT:

    As noted in a comment, you can also do:

    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'
    }
    

    Or even reference other versions.

提交回复
热议问题