Overview of Android Studio configuration issues

Source: Internet
Author: User


After the installation Androidstudio is complete, there may be an issue that cannot be started, no matter how many times you double-click Studio.exe this thing, it just doesn't react.


I summed up the various problems I encountered, really is the character low to the extreme, each kind of mistakes have encountered, the following to summarize the various ways to solve the error:


1. After installing Android Studio v0.8.0 (June), the following error occurred:

650) this.width=650; "Src=" http://img.blog.csdn.net/20140722141029078?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvskpnttiwmdk=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Southeast "/>

Cause Analysis: Perhaps this version of the time I downloaded the beta version, can not find jvm.dll caused;

Solution: Decisively uninstall, re-download Android-studio-bundle-130.677228-windows.exe This version of the installation, the error resolved.


2. After installing Android-studio-bundle-130.677228-windows.exe this, double-click Studio.exe cannot start, no response;

Locate the installation directory (the default directory is: C:\users\<user>\appdata\local\android\android-studio) and use CMD to run the Bin/studio.bat under this directory with the following error:

[HTML] view Plaincopyprint?

    1. Error:cannot start Android Studio.

    2. No JDK found. Please validate either ANDROID_STUDIO_JDK, Jdk_home or java_home points to valid JDK installation.

    3. ECHO is turned off.

Error:cannot start Android studio.no JDK found. Please validate either ANDROID_STUDIO_JDK, Jdk_home or java_home points to valid JDK installation. ECHO is turned off.



Cause Analysis: Environment variables are not properly configured;

Solution:

1) Look for variables named Java_home and jdk_home in the system environment variables, if one is not created. Set the value of the variable to the JDK root directory, do not add bin path;

[HTML] view Plaincopyprint?

    1. java_home = C: \jdk <pre name= "Code" class="ht ML " style=" FONT-SIZE:13PX; line-height:19.5px; " > jdk_home = C: \jdk

Java_home = C:\jdk <pre name= "code" class= "HTML" style= "FONT-SIZE:13PX; line-height:19.5px; " >jdk_home = C:\JDK




2) Next, find the CLASSPATH variable, and do not create a new one. Set the value to

[HTML] view Plaincopyprint?

    1. CLASSPATH =.; %java_home%\lib;%java_home%\lib\tools.jar;%java_home%\lib\dt.jar;

CLASSPATH =.; %java_home%\lib;%java_home%\lib\tools.jar;%java_home%\lib\dt.jar;

3) Add the end of the value of the PATH variable first, and then add your own Java startup directory


[HTML] view Plaincopyprint?

    1. CLASSPATH =;%java_home%\bin;

CLASSPATH =;%java_home%\bin;

3. After setting up, double-click Studio.exe still can't start, still no response, too not to force;


Continue to run Studio.bat with cmd and find errors:

[HTML] view Plaincopyprint?

    1. Unrecognized VM option ' +usecodecacheflushing '

    2. Could not create the Java virtual machine

Unrecognized VM option ' +usecodecacheflushing ' Could not create the Java virtual machine


Solution:


[HTML] view Plaincopyprint?

    1. Use the Text tool to open the \ Bin directory under the studio.exe.vmoptions, delete-xx:+usecodecacheflushing that line.

Use the Text tool to open the \ Bin directory under the studio.exe.vmoptions, delete-xx:+usecodecacheflushing that line.

4. Continue to run Studio.exe, found not yet, check the 2nd step of the environment variables in the jar files, found that these things do not exist in the corresponding directory; continue to resolve


After the JDK1.6 version, after the installation does not exist these files, how to do? Can only go to the old version of the previous search, I went to download the J2sdk-1_4_2_09-windows-i586-p.exe version of the JDK, after the installation to the response directory to find these files, copied to the previous directory.


OK, finally fix, smooth start.



This article is from "Little book" blog, please make sure to keep this source http://8988940.blog.51cto.com/8978940/1571257

Overview of Android Studio configuration issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.