Search code examples
android-studiogradledaemongradle-daemon

Create New Project Android Studio 0.2.3 - Unable to start Gradle daemon process


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:

gradle error message when trying to create new project.

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.

Regards Adrian Wreyford


Solution

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

    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.

    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.

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

    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;

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

    Hope I can help someone else!