Android Studio installation tutorial

Source: Internet
Author: User

1. Pre-installation settings

1. Install JDK

: Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Note that you must select a version suitable for your system.

2. Configure java environment variables

Control Panel → system → advanced system settings → "environment variables" under "advanced ":

  • Click Create in system variables, enter JAVA_HOME in the variable name, set the variable value to the JDK installation path, and enter "C: \ Program Files \ Java \ jdk1.7.0 _ 21" here.
  • In the system variables, click Create variable name and enter CLASSPATH. Fill in the variable value with ".; % JAVA_HOME % \ lib \ tools. jar ". Do not forget the front and middle semicolons.
  • Find the Path variable in the system variable, which is built-in to the system and does not need to be created. Double-click Path. Because the original variable value already exists, add "; C: \ Program Files \ Java \ jdk1.7.0 _ 21 \ bin" to the existing variable
Ii. Install Android Studio

Download the android Studio installation file at http://developer.android.com/sdk/installing/studio.html#download. after downloading the file, click next.

If your system is not a win64-bit system, but a 32-bit system, refer to the following solutions:

All android studio fails to run due to an error in execution of studio. bat. The last is the same job:

Answer the 32-bit win7 system question.

Find studio. bat under bin in the installation directory, and use Edit to open studio. bat, lines 25th to 28:

SET JRE=%JDK%IF EXIST "%JRE%\jre" SET JRE=%JDK%\jreSET BITS=IF EXIST "%JRE%\lib\amd64" SET BITS=64

We can see that the number of system bits supported by the software is 64 bits, and my own computer is a 32-bit jre/lib directory with only i386 files.

IF EXIST "%JRE%\lib\amd64" SET BITS=64

Change

IF EXIST "%JRE%\lib\i386" SET BITS=32

For 32-bit XP systems:

Set bits = changed to set bits = 32

64-bit system unchanged

Installation:

Click Next, as shown below:

It must be jdk. When I first install jre, it is automatically filled with jre, and cannot be used. So I reinstall it later and continue to Next:

Next:

Select Install to start installation, and click finish. Note: After installation, if your system is not 64-bit, do not start Android Studio. At this time, you can run this software after setting studio. bat)

Run the program. The following page is displayed:

When you run the program for the first time, the following error occurs:

After a period of time, the following occurs:

Installed successfully!

Related Article

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.