在机器人工作室摇篮错误 [英] Gradle errors in Android Studio

查看:179
本文介绍了在机器人工作室摇篮错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进口的Andr​​oid项目从Eclipse来Andriod的工作室,但是当我编译,我得到这些错误。这是什么意思?

I imported an Android project from Eclipse to Andriod Studio, but when I compile, I get these errors. What do they mean?

Gradle: : org.gradle.api.plugins.PluginInstantiationException: Could not create plugin of type 'AppPlugin'.
Gradle: : java.lang.NoClassDefFoundError: org/gradle/tooling/provider/model/ToolingModelBuilderRegistry
Gradle: : java.lang.ClassNotFoundException: org.gradle.tooling.provider.model.ToolingModelBuilderRegistry

我不认为这有什么与我的code,因为它的所有工作在Eclipse中。在另一方面,我得到的Andr​​oid Studio中创建运行等项目。难道我做错事,导出或导入项目时?

I don't think it has anything to do with my code, since it all worked in Eclipse. On the other hand, I get other projects created in Android Studio to run. Did I do something wrong when exporting or importing the project?

推荐答案

我有同样的问题。原来那是因为我已经安装了摇篮V1.4。有一次,我升级到V1.6(下载和转换路),这些问题就走开了。

I was having the same problem. Turned out it was because I had Gradle v1.4 installed. Once I upgraded to v1.6 (download and change path), these problems went away.

这篇关于在机器人工作室摇篮错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆