Build an android Environment

Source: Internet
Author: User
Build an android Environment

1. Install JDK 1.5 or above official website address: https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter

2. Download the android SDK:

Http://androidappdocs.appspot.com/sdk/index.html

Select the corresponding SDK for the corresponding operating platform

3. To download eclipse3.4 or 3.5, you can also install myeclipse8.5 (8.6 is now available)

: Http://www.verycd.com/search/folders/myeclipse

OK!

Now all preparations are ready and action is started.

4. Install JDK first. Configure environment variables after installation.

Right-click my computer and choose Properties> advanced> environment variables> system variables;

Variable name java_home variable value c: \ Program Files \ Java \ jdk1.6.0 _ 22 (your JDK installation path );

Add.; % java_home % \ bin before the original variable name path;

Variable name classpath variable name.; % java_home % \ Lib \ tools. jar; % java_home % \ JRE \ Lib \ RT. jar;

OK!

Click "run" in the menu, Enter cmd, and press Enter.

Test:

Create a text document and enter a class named helloworld source.Program, The source code is as follows:

Public class helloworld {
Public static void main (string [] ARGs ){
System. Out. println ("Hello world! ");
}
}

Save as file helloworld. Java

Choose menu> RUN> cmd> press Enter.

Use "CD directory" to switch to the helloworld directory

Javac helloworld. Java and press ENTER

Java helloworld and press ENTER

Result: Hello world!

Everything is OK.

Here, tank will insert a sentence. I have configured the environment variables n times. As a result, all the steps are OK. I typed Java-version in cmd, but it has always been version 1.3, compiling Java programs in such an environment is definitely a problem. It has been depressing for a long time !!!

Later, I finally discovered that it was a ghost of oracle! In the system environment variable path, I found c: \ Program Files \ oracle \ JRE \ 1.3.1! It's no wonder that 1.3 is the same. I have installed Oracle before, so I automatically configure this environment variable. The machine will find it in the system variable, so I will delete it!

OK, jkd is ready.

4. Install the SDK only after JDK is successfully installed and environment variables are configured. Otherwise, it will take a long time for you to install the SDK.

5. Install and develop the IDE. My installation is myeclipse.

After installing myeclipse, go to help-> myeclipse configuration soft-> go to the software tab and add the address https://dl-ssl.google.com/android/eclipse/. then, double-click Android ddms and Android development tools to the right.

In the lower right corner, a button "Apply * Change" is clicked. Sometimes the installation error is prompted. Don't worry. Just re-open myeclipse and install it again.

After the installation is successful, you will see several more icons in the above menu bar, indicating that the installation is successful.

6. Add environment variables that reference the SDK

Add your SDK .. directory \ toors to the path in the system environment variable

Open myeclipse window --> preferences --> Android --> SDK location and add your SDK installation path.

OK, everything is so perfect!

Try the effect. It took so long

In window --> Android SDK and AVD Manager

--> New: Set the corresponding options and click Create AVD.

A row is added to the list. Select "OK" and click "start". You will see a very beautiful mobile phone interface, cool interface !!! A lot of features, you can play it out!

Haha, OK. Everything is so perfect.

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.