如何设置gradle home同时导入现有的项目在Android工作室。在尝试导入时,我需要设置这个路径。


当前回答

在Windows中

..\AndroidStudio2.0Beta6\android-studio\gradle\gradle-2.10

其他回答

我也遇到了同样的问题。我选择位置C:\Program Files (x86)\Android\ android-studio\plugins\gradle作为gradle Home

我尝试了byteit101的解决方案,但无论我选择android-studio-path/plugins/gradle还是android-studio-path/plugins/gradle/lib, IDE都说这是不正确的。

然后我把gradle home改为android-studio-path/gradle/gradle-x.x。X可行。

用于从eclipse迁移到android studio

(不需要指定Gradle home)

找到从Eclipse导出的项目,展开它,选择构建。gradle文件,单击“确定”。 在下面的对话框中,选择Use gradle wrapper并单击OK。

windows用户可以试试这个方法

http://blog.blundell-apps.com/setting-up-android-studio-gradle-windows-7/

对于Mac,

/Applications/Android Studio.app/Contents/gradle/gradle-3.2

我正在使用Lubuntu,我最终发现它在:

/usr/share/gradle