After installing Android studio, I can't start it. There is no response any more after click it's icon.I open the bat file named “studio.bat” in "C:\Program Files\Android\android-studio\bin",run it in cmd window, I found that:
C:\Documents and Settings\mtk81346>"C:\Program Files\Android\android-studio\bin\studio.bat"
C:\Documents and Settings\mtk81346>IF EXIST "" SET JDK=
C:\Documents and Settings\mtk81346>IF NOT "" == "" GOTO jdk
C:\Documents and Settings\mtk81346>IF EXIST "C:\Program Files\Android\android-st**udio\bin\\..\jre**" SET JDK=
C:\Program Files\Android\android-studio\bin\
\..\jre
C:\Documents and Settings\mtk81346>IF NOT "" == "" GOTO jdk
If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin.
Open up Tools => Android => Android SDK Manager and see if there are any updates to the platform or SDK tools. Update any suggested changes within the manager and then restart your emulator and Android Studio. Then try debugging again.
Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.
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.
Add the environment variable JAVA_HOME to the latest jdk path.
Make sure you have JDK_HOME or JAVA_HOME System Variable set to the path of the JDK.
Secondly, I had an issue using an older version of the JDK (1.6.x). When I upgraded to 1.7.x, and modified the System Variable JAVA_HOME to that path (didn't include /bin), I was able to get Android Studio running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With