The Win7x86+eclipse of Android environment construction

Source: Internet
Author: User
Tags adt packages

Preface description

Development steps

Before you develop Android, you must build your environment first. The steps are as follows:

> JDK Download installation configuration

> Eclipse Download Installation configuration

> Android SDK Download installation configuration

> ADT Download and Configuration

> genymotion Download Installation configuration

Test program

After the environment is set up, it is necessary to test the program to really succeed, so

> Program Testing

If it's not rookie, just click to download your own installation

Development software

Official address

My resources (Baidu Cloud)

JDK1.7

Please click on my

Please click on my

Eclipse4.4

Please click on my

Please click on my

Android SDK24

SDK not included, download required

Please click on my

SDK with 4.0 and 2.1 included

Please click on my

ADT24

Please click on my

Please click on my

Genymotion

Genymotion2.7.2

VirtualBox5.0.2

genymotion2.4.0

virsualbox4.1.2

Please click on me to download together

JDK Download the installation configuration

1> Access to the website

Please click directly:

Http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

Because you want to choose the version freely, please pull down the bottom

2> Java archive point in to download the historical version

3> Select version download

Can choose the version, I choose the 32-bit version of the

Because probably the general configuration, tried 64-bit software sometimes blue screen card

4> installation path generally choose non-C drive, and the path is not Chinese as well.

The JDK and public JRE are installed under the same path.

5> Configuring Java Environment variables

Java_home

JDK Installation path

Mine is: D:\iteniv\java\jdk1.7

PATH

Allows the system to identify Java commands under any path

%java_home%\bin

CLASSPATH

Java Load classes (class or lib) paths

Only classes in Classpath, Java commands can recognize

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

After configuration, cmd input java-version or Java appears the following information is configured to complete

Eclipse Download the installation configuration

1> Access to the website

Please click directly:

http://www.eclipse.org/downloads/

Because you want to choose the version freely, please click Download Packages

2> Select version download

Here we choose the Eclipse Luna (4.4) version

Select Eclipse IED for Java Developers

Be aware that Eclipse and JDK are of the same version type

JDK Download x86 is 32-bit, so eclipse downloads 32bit

3> Installation Instructions

Eclipse installation Direct decompression copy to a path, for ease of administration

I generally install all development environments under the unified path

Requires non-C drive, installation path not Chinese

I am here: D:\iteniv

4> working Directory

The first time you start Eclipse, you'll be asked to set up workspace working directory

Please set to non-C disk, non-Chinese directory.

Usually I will. Unified Directory Management

On the use of this as the default and does not ask again place select on

Save as default working directory

Then eclipse is done with the installation.

Android SDK Download the installation configuration

1> Access to the website

Access to the Android website requires FQ If you have a VPN

Please directly click http://developer.android.com/sdk/index.html

No, don't worry, there are already brothers to set up and organize the resources online, please see

androiddevtools:http://www.androiddevtools.cn/

Android Blog Park collection Download:

Http://www.cnblogs.com/bjzhanghao/archive/2012/11/14/android-platform-sdk-download-mirror.html

Here we download the demo from the blog park, because there is a download link to the official website

2> installation Configuration

Unzip directly into the IT development catalog D:\iteniv

Click SDK Manager.exe to start

I have installed Android4.0.3 's SDK here.

Tools and Platform-tools and Build-tools are also needed.

Otherwise, you may not find a R.java error while compiling the program

3> Troubleshooting cannot be updated

Using proxies

Perhaps there is no FQ, so you can see that there is no new SDK display, only the installed

Adding content to the Hosts file

Open C:\WINDOWS\system32\drivers\etc directly

Add the following to the Hosts file

203.208.46.146 www.google.com

74.125.113.121 developer.android.com

203.208.46.146 dl.google.com

203.208.46.146 dl-ssl.google.com

4> Download Update SDK

You can see that all the SDKs and plugins can now be displayed

Then you can choose to download the

ADT Download and configure

I just downloaded eclipse, but it's certainly not possible to develop Android.

So ADT is here, it's the plugin for the Eclipse development Android program.

Only add Adt,eclipse to identify the Android SDK and develop Android programs

1> Access to the website

Also we collect the address download in the blog park

Android Blog Park collection Download:

Http://www.cnblogs.com/bjzhanghao/archive/2012/11/14/android-platform-sdk-download-mirror.html

Wait a moment just now our SDK download is 24.0.2, general correspondence is better

So I also want to download the ADT 24.0.2, but there is no

Based on experience, copy links to Thunderbolt

2> Modify the Download

Modify to download ADT24.0.2 version

Add ADT Plug-ins in 3> eclipse

Direct replication of ADT packages to IT development directory D:\iteniv

Open Eclipse to take action

Show developer tools all hook up

The bottom contact all update sites during ... No tick

Then complete the installation as required

4> Eclipse configuration Android SDK

Restarting eclipse will require the Android SDK to be configured

Click on the button to open the SDK Manager

The button next to the emulator can be turned on, but Android comes with an emulator.

The following Genymotion simulator installation configuration

genymotion Emulator Download Installation configuration

1> Access to the website

Direct access to https://www.genymotion.com/

Need to register before you can see the download Oh, sign in

2> Select Download

Genymotion needs VirtualBox support

Because there is an error trying with VirtualBox, it is possible that the version is high

So try to install separately, download without VirtualBox

Download VirtualBox Separately, download the installation separately and there's no mistake.


3> installation Configuration

Install VirtualBox and install Genymotion first

It is also installed in the IT development catalog D:\iteniv

Next Run Genymotion

You can add a device by clicking Add

But sometimes downloads fail, so look down

Although the download device failed, there is a record.

Find Genymotion.log, copy links using third-party downloads

The use of thunder is also unpleasant. Wait till you're done.

Download good copy to

c:\users\[your user name]\appdata\local\genymobile\genymotion\ova

Then replace the files that are not downloaded, and even the file names are replaced

Otherwise it will be downloaded again.

Then you can see that the boot is correct.

Configuring the Genymotion plugin in 4> eclipse

Genymotion is installed, but if you use it in Eclipse, you must install the plugin.

can be installed online and installed offline. We have an online installation here

and ADT plug-in installation process is similar, just need online address

Http://plugins.genymotion.com/eclipse

Operation

Restart Eclipse to see the Genymotion plugin installed successfully

Helloworldandroideclipse Program Testing

Create a new Android project

Start genymotion Run, Success!!!

The Win7x86+eclipse of Android environment construction

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.