Android Program Analysis Environment construction

Source: Internet
Author: User

WinDOS Analysis Environment Construction

Warm tip: We will use the Windows XP 32-bit system in the future environment

1. JDK

Oracle website Download: http://www.oracle.com/technetwork/java/downloads/index.html

The following is the JDK I find myself:

JDK8 (Win7 System): Http://yunpan.cn/cVsC8j7s6e9BY access Password b89f
JDK6: (XP system) Http://yunpan.cn/cVsC2wXnXHJQZ access password be2f

environment variable Settings

Configure environment variables after installing JDK computer → properties → advanced system settings → advanced → environment variables

(1) system variables → new java_home variable

Variable value fill in the JDK installation directory (I am E:\Java\jdk1.7.0)

(2) system variable →path variable → edit (must be edit, add environment variable later, not new, otherwise you will overwrite all environment variables.) )

Enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;

(Note that the original path of the variable value at the end of there is no; number, if not, first enter; number and then enter the above code)

(3) system variables → new CLASSPATH variable

Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (note the first point) system variable configuration complete

(4)

Verify that the configuration successfully runs the cmd input java-version (there are spaces between Java and-version) displays the version information indicating that the installation and configuration were successful.

2.Android SDK

Android SDK refers to the Android-specific software development Kit

Android Website SDK

Http://developer.android.com/sdk/index.html#Other

When using the Android SDK Manager, the following situation may occur, the API can not be installed, Platform-tools is not, how to solve it?

Configured as follows Tools–>options (PS: This method is I reprint of others, this method from http://jingyan.baidu.com/article/c843ea0b989e1677931e4af3.html), After configuration, the SDK Manager will load a lot of installation packages.

Select part to install it.

environment variable settings:

The environment variables of the Android SDK are very simple, and the flow is the following

Computer → properties → advanced system settings → advanced → environment variables

Locate the path variable in the system variable, select Edit, and then C:\Program Files\android\android-sdk\tools and C:\Program files\android\android-sdk\ Platform-tools Adding environment variables

(In fact, tools and platform-tools are put into the environment variable)

Note: the need for an environment variable is to be separated. So don't forget to add;

Detect if environment variables are configured correctly

CMD in the input command

Enulator–version

Adb–version

If there is no error, the environment variable is configured correctly.

Warm tip: During the installation process will ask you access permissions, if you choose just me, will be in the following installation process some problems. There are files that cannot be written to. So it is recommended to use for everyone (if you choose install just for me no error, of course you can also choose this)

3.Android NDK

Android NDK is Google's toolkit for developing Android native programs

Introduction to the NDK you can take a look at this and say it in detail http://www.cnblogs.com/devinzhang/archive/2012/02/29/2373729.html

Official

Http://developer.android.com/ndk/downloads/index.html

After running can just wait for it to decompress, decompression ha, put it casually in which directory is good, I put in the root of the C-drive directory

Configuring NDK Environment variables

Computer → properties → advanced system settings → advanced → environment variables

System environment variable →path→ edit in the back plus (add that path yourself where you put it)

; C:\android-ndk-r10e

Test the NDK for installation success:

Go to cmd window →CD c:\android-ndk-r10e\samples\hello-jni→ndk–build

If there is no error, it means success. ^_^

4.Eclipse Integrated development Environment

Official:

Eclipse for Moblie developers version of

Http://www.eclipse.org/downloads/packages/eclipse-mobile-developers/junosr2

Eclipse is a green software that can be unpacked and placed in your convenient directory, which is automatically initialized based on the environment variables set previously.

5.ADT, CDT plug-in

ADT is an eclipse plugin that is linked to the Android SDK, enabling your eclipse to create a new Android project

Official:

Http://developer.android.com/tools/sdk/eclipse-adt.html

ADT Installation

There are two ways to install ADT:

Help->insall New Softare->add will appear below this interface

Method one: Through the URL

Name:adt

Location:https://dl-ssl.google.cm/anroid/eclipse

Method Two: Through the installation package

Name:adt

Location: The path to the ADT installation package you downloaded

Version: 23.0.2 website: http://dl.google.com/android/ADT-23.0.2.zip

Version: 22.6.3 website: http://dl.google.com/android/ADT-22.6.3.zip

When ADT is installed, it is associated with the Android SD. As follows

CDT installation

If the reader is using the eclipse for Moblie developers version, or the CDT plugin is available, you can skip it installation (the CDT is installed by default)

Check the Window drop-down list for preferences to know if your eclipse has a CDT plugin

If not, you need to install it manually:

If you can fq, the simplest way is to click on the dialog box that appears after clicking Help->install New software, and then search for the CDT will appear below, then install directly.

There is a well-equipped environment with Android + SDK +adt+eclipse

Http://yunpan.cn/ccWNqnHiajITs Access Password da3b

6. Create Android vitual Device

Click on the navigation bar of Android Virtual Devices Manager to eject create AVD.

Click Create, fill in the name, choose target API,SD card size arbitrary, skin random selection, hardware now keep the default value ·

    1. Name: Virtual machine names, whatever you want.

    2. Target platform, choose your own Android version here, I am here in version 2.2.

    3. SD Card: The size of the hard disk space inside the virtual phone can be set according to your needs.

    4. Snapshot: Snapshot, after tick can support save the state of the virtual machine, so that you can save the settings like a real machine, do not have to reset each time, this option is also helpful to quickly start the virtual machine, but correspondingly, save speed will slow down.

    5. Skin: The screen size of your virtual machine can be set according to your needs.

    6. Hadrware: The hardware of your virtual machine can be set according to your needs.

Click OK to complete the AVD creation


You can use the Android virtual Device Manager that comes with the Andriod SDK, but this comparison card is very slow to run, and now there is a better tool on the market called Bluestacks

Official:

http://www.bluestacks.cn/

7. Tools used

Apkide http://yunpan.cn/cVsCtFvpKBWk9 access Password 4fb6

Android Program Analysis 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.