38

I've just downloaded the new Android Studio IDE released today, and installed it. When I double-click the icon to launch it, nothing happens. I've tried every shortcut to it, as well as the .exe in the installation folder.

I've also tried restarting the machine, uninstalling / restarting, and installing to a folder location without spaces. Does someone know why Android Studio won't start?

John Leehey
  • 22,052
  • 8
  • 61
  • 88
  • 1
    Does Google support this product? Also, I'm hearing anecdotal reports that it won't run on Windows 8. http://chat.stackoverflow.com/rooms/15/android – Robert Harvey May 15 '13 at 20:39
  • 1
    A lot of people are having issues http://stackoverflow.com/questions/16574189/android-studio-installation-issues-on-windows-7?noredirect=1#comment23816203_16574189 – Ruben Weerts May 15 '13 at 20:41
  • Did you try admin run? – iTurki May 15 '13 at 20:45
  • yeah I tried admin run. I'll try the solutions in the other issue, and then close this as a duplicate if necessary. – John Leehey May 15 '13 at 20:53
  • Yup, adding the JDK_HOME setting to my Java 1.7 directory fixed it. I'll vote to close as a duplicate. – John Leehey May 15 '13 at 21:29
  • By the way @RobertHarvey, Android Studio is the new official IDE for android development. It was announced at Google I/O this morning. – John Leehey May 15 '13 at 23:40
  • Yes, I have the link. Awesome. – Robert Harvey May 15 '13 at 23:41
  • Hey, it is not a duplicate, the other question is about install problems, this one is about issues AFTER the install – RMalke May 16 '13 at 11:55
  • Do we have to brace for a flood of question from folks who want to run an unsupported alpha product now? – 323go May 16 '13 at 20:04
  • Please see the following Thread i have started, Alot of people have resolved their issues including myself. [http://stackoverflow.com/questions/16574189/android-studio-installation-issues-on-windows-7](http://stackoverflow.com/questions/16574189/android-studio-installation-issues-on-windows-7) – Jaison Brooks May 15 '13 at 21:40
  • 1
    We're aware of the issue and working on it. I've added a Known Issue and a workaround here yesterday in the meantime: http://tools.android.com/knownissues#as0.1 – ralf at android May 17 '13 at 03:39

1 Answers1

54

I set my JDK_HOME environment variable to point to my Java (1.7) JDK path, and it worked.

My JDK path was:

c:\Program Files\Java\jdk1.7.0_21

but it will vary depending on the version of your JDK.

For directions in setting PATH variables for windows see: http://java.com/en/download/help/path.xml

Joe
  • 1,327
  • 1
  • 10
  • 19
John Leehey
  • 22,052
  • 8
  • 61
  • 88
  • 1
    My google skills are failing me...how do I edit the "JDK_HOME" variable? As in where is it located? I have Java(1.7) installed – bvandrunen May 16 '13 at 00:38
  • Go to the Environment Variables (Control Panel -> System -> Advanced System Settings -> Advanced (tab) -> Environment Variables). Then add JDK_HOME with the correct path under System Variables. – Yodacheese May 16 '13 at 05:44
  • 2
    Also, note it isn't enough to add java home to the PATH variable, it is mandatory to create JDK_HOME – RMalke May 16 '13 at 12:18
  • Looks like smart screen on windows 8 is the problem – Ravi May 19 '13 at 07:54
  • For those who are on Linux Systems, make sure your desktop file contains this line: `Exec=JDK_HOME="/usr/lib/jvm/icedtea-7/" /path/to/your/.../android-studio/bin/studio.sh` Replace the JDK_HOME path to whatever yours is. – NuclearPeon Jul 20 '13 at 01:49
  • Worked like a charm :) – kunal18 Nov 08 '14 at 17:54