Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio doesn't start

I just download Android Studio for Windows 7, the wizard went ok up to the end but now when I click on the shortcut or on the .exe to start the program nothing happens, no error, no new window, it's seems like it is doing nothing. Do you have any suggestion?

like image 371
Luigi Tiburzi Avatar asked May 16 '13 08:05

Luigi Tiburzi


People also ask

How do I fix Android Studio not opening?

My solution was to press [Win] + Tab and then choose Android Studio on half of the screen so that it readjusts. Finally, I maximized it and it opened it in the correct screen. This happened to me, too.

Why Android Studio is not running the app?

Unplug your device from the USB port on the computer. Restart the device by powering off and back on. Verify that Settings => Developer options => USB Debugging is enabled. Quit and re-launch Android Studio.

How do I launch Android Studio?

To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh . Select whether you want to import previous Android Studio settings or not, then click OK.


2 Answers

It's a bug of Android Studio 0.1v

You should add JAVA_HOME to the system environment variables.

http://tools.android.com/knownissues#as0.1

  • Open Start menu > computer > System Properties > Advanced System Properties
  • In the Advanced tab > Environment Variables, add new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_21
like image 171
Tigris Avatar answered Sep 21 '22 09:09

Tigris


  1. Install latest Java Development Kit.
  2. Set path in system variables for Java (ie *C:\Program Files\Java\jdk1.7.0_21\bin*)
  3. Set JDK_HOME system variable (ie *C:\Program Files\Java\jdk1.7.0_21*)
  4. If not working, set JAVA_HOME in system variable too (ie *C:\Program Files\Java\jdk1.7.0_21*)
  5. If not working, check if you don't have spaces at the ends of the lines in system variables (PATH, JDK_HOME, JAVA_HOME)

You don't have to restart computer after changing system variables, just reload command prompt (if you are using it).

If it still not working, you probably have java.exe in C:/Windows/System32/. Rename it, restart command prompt and type java -version to check if you are using correct version of JDK.

I've posted tutorial how to fix Android Studio with screenshots on my blog.

like image 36
jvyvazil Avatar answered Sep 18 '22 09:09

jvyvazil