[英]Android Studio Error : Unsupported version of the Android Gradle plug-in (0.9.2)
I am working on an Android Project for few months and I recently upgraded android studio form 0.5.2 to 0.8.0. 我正在开发一个Android项目几个月,我最近将android studio格式从0.5.2升级到0.8.0。 Now I am unable to open my project via new Android Studio.
现在我无法通过新的Android Studio打开我的项目。 I am getting this error whenever I try to open the project and unable to open it.
每当我尝试打开项目并且无法打开它时,我都会收到此错误。
The project is using an unsupported version of the Android Gradle plug-in (0.9.2)
Consult IDE log for more details (Help | Show Log)
I don't know much about Gradle, Ant, Maven or any built script. 我不太了解Gradle,Ant,Maven或任何构建的脚本。 Also, there is no option to see the the logs from the Start screen of android studio.
此外,没有选项可以从android studio的“开始”屏幕查看日志。
Since your project is not being opened by the IDE, try to update Gradle plugin version manually. 由于IDE未打开您的项目,请尝试手动更新Gradle插件版本。 Locate
build.gradle
file in your project's root directory and change the version in buildscript
block so it would look like this: 在项目的根目录中找到
build.gradle
文件并更改buildscript
块中的版本, buildscript
如下所示:
buildscript {
...
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
Save the file and try to re-open your project. 保存文件并尝试重新打开您的项目。
In Android Studio 0.8.7, you can change to 在Android Studio 0.8.7中,您可以更改为
buildscript {
...
dependencies {
classpath 'com.android.tools.build:gradle:0.12.2'
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.