本文介绍了创建新项目 Android Studio 0.2.3 - 无法启动 Gradle 守护进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Android Studio 时遇到了严重问题.我已经完全卸载了 Android Studio 以及我 PC 上的任何 Eclipse 副本.然后我删除了用户文件夹中的 .gradle .android 文件夹.然后我在我的 PC 上重新安装了最新版本..gradle 和 .android 文件夹已重新创建.

I'm having serious problems with Android Studio.I have totally uninstalled Android Studio, and any copies of Eclipse on my PC.I then deleted the .gradle .android folders in the users folder.I then Re-installed the latest release on my PC.The .gradle and .android folders have been recreated.

我现在尝试创建一个新项目.我设置了所有通常的,然后出现以下错误:

I now try to create a new project.I set all the usual, and then the following error comes up:

我已经阅读了多篇文章,其中大部分是针对旧版 Android Studio 的.我的 SDK 是最新的,是的,我安装了 Android Support Repository Revision 2 和 Android Support Library Rev 18.

I have read multiple posts, most for older versions of Android Studio.My SDK is up to date, and yes I do have the Android Support Repository Revision 2 installed as well as Android Support Library Rev 18.

为什么这必须如此复杂,我就是无法理解.

Why this has to be so complicated I just cannot understand.

问候阿德里安·雷福德

推荐答案

好吧,经过几个小时的尝试,我设法解决了它.

Well I managed to solve it after many hours of trying.

首先我用的是Windows 7,16GB内存,截断的是系统路径!这让我没有正确的 GRADLE_HOME 路径.

First of all I use Windows 7, with 16GB ram, and it was the system path that was truncated!This left me without the proper GRADLE_HOME path.

我手动下载了最新的 Gradle-1.7 版本.Android studio 0.2.3 使用的是 1.6,但随后我手动修复 0.2.5 使用 Gradle-1.7.

I manually downloaded the latest Gradle-1.7 build.Android studio 0.2.3 was using 1.6, but subsequently to my manual fix 0.2.5 uses Gradle-1.7.

我创建了一个系统变量:GRADLE_HOME,其值为:D:\gradle-1.7,指向我的手动 Gradle 安装.

I created a System variable: GRADLE_HOME with value: D:\gradle-1.7 that points to my manual Gradle install.

我将我的真实路径"(在 Windows 截断它之前)分解为扩展"路径变量,从而缩短了我的实际路径,并在路径末尾插入了以下内容:%GRADLE_HOME%/bin;%JAVA_HOME%/bin;

I broke my 'real path' (before windows truncated it) into 'extended' path variables, thus shortening my actual path, and inserted the following at the end of the path:%GRADLE_HOME%/bin;%JAVA_HOME%/bin;

在 stackoverflow 上有很多关于处理截断窗口路径的链接.这就是让它工作所需的全部内容.

There are many links on dealing with truncated windows path on stackoverflow.And that was all that was required to get it working.

希望我能帮助别人!

这篇关于创建新项目 Android Studio 0.2.3 - 无法启动 Gradle 守护进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 15:49