How to solve Android Studio error Error:CreateProcess error=2, The system cannot find the file specified?

Hi,
I’ve successfully installed JDK and also Android Studio 1.2.2 both of 64bit and when I’ve created a new project, called NoteTaker Gradle Build starts and it shows an error with the title of Gradle NoteTaker project refresh failed
Error:CreateProcess error=2, The system cannot find the file specified and also shows a small message that says **Gradle Project sync failed. Basic functionality (e. g. editing, debugging) will not work properly.**

How can I solve this?

Namaste.

Hi,
I’ve downloaded Android Studio 2.1 and when I try to install it, it says that select directory of JDK and when I select it correctly still Android Studio setup gives an error saying that We still were not able to detect JDK Please try again.

Vital Points :

  1. I’m installing Android Studio 2.1 64bit
  2. I’ve installed JDK of 64 bit

Namaste.

Hi,
I’m trying to uninstall Android Studio 1.2.2 and I’ve done it too, and it is not even showing icon in my Control Panel but when I start Android Studio it starts correctly. Shall I delete all the Android Studio files manually?

Vital Points :slight_smile:

  • I’m using Windows 10

Welcome to the forums, @AkhilKokani.

I have merged your topics. Please don’t start multiple threads for the same issue.

Thanks, I got it!

1 Like

Did the path to the file get added to your SYSTEM PATH variable? eg.

C:\Program Files\Java\jdk1.7.0_03\bin

* with your JDK location and version of course.

I’ve created a new path variable but it is still showing the same error.

And you restarted your computer?

Yeah, Of Course. Now it showing this error.

Well, I have Windows 10 and I had some success

I needed to update my Java SDK, no problem there. I downloaded
jdk-8u92-windows-x64.exe
and ran it.

Restarted my computer.

Opened Command Prompt and ran
>javac -version

it still showed my older version so I changed the system path to
C:\Program Files\Java\jdk1.8.0_92\bin

Then I downloaded and installed
android-studio-bundle-143.2915827-windows.exe

At no time in any of the install wizards did I do anything “advanced” or change any of the defaults.
Basically just clicked “yes” and “next” each time.

The Android Studio seems to be working fine.
What did not install was the virtual device
- BUT - I did not add a JAVA_HOME variable

AFAIK that should point to the main Java folder i.e.
either
C:\Program Files\Java\jdk1.8.0_92
or
C:\Program Files\Java\jre1.8.0_92

I’m leaning towards it being the JRE that’s needed, but I may be wrong.

I’ll try after I grab a bite to eat.

1 Like

Seems I was wrong, the JDK it is.

I added a SYSTEM PATH
JAVA_HOME C:\Program Files\Java\jdk1.8.0_92

restarted my computer

for good measure clicked the install exe for Java then Android Studio

The virtual device emulators loaded OK, but to get them to work I’ll need to do a bit more setting things up, which I’m not likely to get to any time soon. .

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.