Windows 7 flagship edition builds andriod 4.0 Development Environment Record, flagship edition andriod

Source: Internet
Author: User

Windows 7 flagship edition builds andriod 4.0 Development Environment Record, flagship edition andriod

Steps for building an Android environment (for reference only ):

Official building steps: http://developer.android.com/index.html

Before creating an environment, you need to download the following packages:

1. Install the Java Runtime Environment JRE (not running this Eclipse) and JDK

Official download http://www.oracle.com/technetwork/java/javase/downloads/index.html,

Install JRE first, and then JDK. If you have nothing to say, just click Next ....

2. Install the Android SDK

Decompress the downloaded android_sdk_r14 package and store it wherever necessary. I usually decompress the package to the Eclipse file and put it under my account...

Decompress the package and run the SDK Manager.exe file. We recommend that you select Android1.5 to Android4.0. There are 33 Packages in total. Click Install 33 Packages. It takes some time to Install the SDK, my bandwidth is 4 m, but it's okay, about 50 mins.

  

The download result is as follows:

  

  OK. SDK installation is complete ....

3. Install Android ADT (eclipse plug-in)

Eclipse official download http://www.eclipse.org/downloads/, select eclipse IDE for Java EE Developers, 212 MB, the original name is helios, now called indigo, upgrade too fast, run the Eclipse interface, select the menu bar Help> Install New Software

  

In the pop-up window, enter the https://dl-ssl.google.com/android/eclipse/ and enter the key> Select All> Next> Finish, All right, waiting for installation ....

  

  

 

After the installation is complete, you need to restart Eclipse. After the restart, eclipse will automatically pop up the path of the specified SDK. Select Use existing SDKs and the Existing Location is the path of the SDK in step 2,

Next> Finish.

  

  ADT installation is complete ....

Different from previous versions, SDK management and ADT management are separated and have two icons

.

 

4. Configure the Android Simulator

Click the button on the right (like a mobile phone), open the AVD manager, click New to create a simulator, enter Name avd4.0, specify Target to select Android4.0, then the size of the SD Card is allocated to 256 MB, and then Create AVD.

  

  AVD created ....

 

5. Our Hello World (We run it together !)

Select File> New> Android Project and name it HelloWorld.

Write code:

 

1 package allen. liu. helloworld;

2

3 import android. app. Activity;

4 import android. OS. Bundle;

5 import android. widget. TextView;

6

7 public class HelloWorldActivity extends Activity {

8

9 private TextView txtView;

10

11/** Called when the activity is first created .*/

12 @ Override

13 public void onCreate (Bundle savedInstanceState ){

14 super. onCreate (savedInstanceState );

15 setContentView (R. layout. main );

16

17 this.txt View = (TextView) findViewById(R.id.txt View );

18 if(this.txt View! = Null ){

19 this.txt View. setText ("Hello World ");

20}

21}

22} Run

 

 

It's over. O (partition _ partition) o


How does one set up an android development environment for Windows 7 basic edition?

Many software of windows Home Edition cannot be installed and have no permissions. Recommended system replacement
To build an android development environment, click www.ylmf.net/..2.html

Which of the following versions can be installed in the android 403 development environment?

No, the best way is to go to the android technical support official website: developer.android.com/about/index.html
Download the ADT development kit, including the eclipce and SDK, and download all the development tools.

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.