摇篮1.6版是必需的。现在的版本是1.8-20130730220035 + 0000摇篮、版本、现在

2023-09-05 06:00:48 作者:捂着心说:不疼

刚刚更新Android的工作室到版本的 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 目录和项目 ** /。摇篮目录。

I deleted my ~/.gradle directory and projects **/.gradle directories.

这似乎没有什么帮助。

鸡蛋里挑骨头:编译在命令行中使用 \选择\摇篮\ 1.6 \ BIN \ gradle.bat构建正常工作

Nitpick: compile on the command-line using \opt\gradle\1.6\bin\gradle.bat build works fine.

推荐答案

我设法通过无效的Andr​​oid工作室缓存,删除 .idea 和的组合来解决我的项目 .gradle 目录和 .iml 文件,重新启动工作室,并重新导入该项目:

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:

在Mac OSX上使用自制软件,酿造安装摇篮然后选择本地摇篮分布,点 /usr/local/Cellar/gradle/1.7/的libexec 的摇篮家庭:

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: