获得纠正错误,而在机器人工作室的进口项目,无法加载类的组织。codehaus.groovy.runtime.typehandling.ShortTypeHandling“ [英] Getting Resolve error while importing project in android studio, Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'
问题描述
我不能够在AndroidStudio导入一个项目,因为有下列错误:
I am not able to import a project in AndroidStudio because of following error:
Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'.
我不知道有关该项目。为什么我得到这个错误,我怎么解决它。
I have no idea about the project. Why I am getting this error and how do I fix it.
推荐答案
我有一个同样的问题。而且我已经找到了解决方案。
I have had a same problem. And I have found a solution.
原因
此问题是由机器人摇篮插件不匹配摇篮版。
解决方案
在项目编辑build.gradle。摇篮插件版本必须满足的要求为Android工作室。
Edit build.gradle in project. gradle plugin version must be satisfied requirements for android studio.
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
}
和编辑distrubutionUrl在摇篮/包装/ gradle-wrapper.properties。版本的摇篮,必须满足的要求摇篮插件。
And edit distrubutionUrl in gradle/wrapper/gradle-wrapper.properties. version of gradle must be satisfied requirements for gradle plugin.
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
您可以找到Android的工作室,机器人摇篮插件和摇篮之间的版本兼容性的此页
You can find version compatibilities between android studio, android gradle plugin and gradle in this page
这篇关于获得纠正错误,而在机器人工作室的进口项目,无法加载类的组织。codehaus.groovy.runtime.typehandling.ShortTypeHandling“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!