需要 Gradle 1.6 版.当前版本为 1.8-20130730220035+0000 [英] Gradle version 1.6 is required. Current version is 1.8-20130730220035+0000
问题描述
刚刚将 Android-Studio 更新到 0.2.7 版,现在我收到标题中的错误消息:
Just updated Android-Studio to version 0.2.7 an now I get the error message from the title:
在日志窗口中有指向等级设置的链接:
In the log window there is link to the grade setup:
无论我使用哪个选项,错误信息都保持不变.
No matter which option I use the error message stays the same.
我删除了我的 ~/.gradle
目录和项目 **/.gradle
目录.
I deleted my ~/.gradle
directory and projects **/.gradle
directories.
似乎没有任何帮助.
Nitpick:使用 \opt\gradle\1.6\bin\gradle.bat build
在命令行上编译工作正常.
Nitpick: compile on the command-line using \opt\gradle\1.6\bin\gradle.bat build
works fine.
推荐答案
我设法通过使 Android Studio 缓存无效、删除 .idea
和 .gradle
目录和 .iml
文件,重新启动 Studio,然后重新导入项目:
I managed to fix my project through some combination of invalidating Android Studio cache, deleting .idea
and .gradle
directories and .iml
files, restarting Studio, and reimporting the project:
在使用 Homebrew 的 Mac OSX 上,brew install gradle
然后选择本地 gradle 发行版并指向 /usr/local/Cellar/gradle/1.7/libexec
为 gradle home:
on Mac OSX using Homebrew, brew install gradle
then pick local gradle distribution and point to /usr/local/Cellar/gradle/1.7/libexec
for gradle home:
这篇关于需要 Gradle 1.6 版.当前版本为 1.8-20130730220035+0000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!