Android Development Environment Building

Source: Internet
Author: User
Tags windows 7 x64 android sdk manager

Android Development Environment Building

Befreedoma

Version 20140729

Learning "Android software security and reverse analysis" is the first to build an Android development environment, the book was published in January 2013, to today many tools have been updated version, installation is also a difference, in this summary of the latest version of the installation process and summarized, in order to quickly build up the latest development environment, For everyone's reference.

System: Windows 7 x64

Need:

Tool Name

Latest Version File name

Java Runtime Environment

Jdk

Jdk-8u11-windows-x64.exe

Android operating Environment

Android-sdk

Android-sdk_r23-windows.exe

Android Native Program Toolkit

Android-ndk

Android-ndk64-r10-windows-x86_64.zip

Android Anti-compile tool

Apktoolkit

Apktoolkit V3.0.rar

Ide

Eclipse (includes CDT, ADT)

Adt-bundle-windows-x86_64-20140702.zip

Tool for turning the wall

Fg742.exe

Eclipse cannot set the NDK path

NDK components

Com.android.ide.eclipse.ndk_23.0.2.1259578.jar

NDK compilation Environment

Cygwin

Cygwin_setup.exe Need networking updates


1.download all files in the link are: Http://pan.baidu.com/s/1dDiqJo1Password: a1bp2.installationJdk-8u11-windows-x64.exe

System environment variable path increased: C:\Program Files\java\jdk1.8.0_11\bin;

Manually add the Java_home variable C:\Program files\java\jdk1.8.0_11

Open the cmd window and enter Java–version1-1, which is installed correctly.


Figure 1-1 See if Java is installed correctly

3.installationAndroid-sdk_r23-windows.exe

System environment variable path increased: C:\work\android-sdk\tools; C:\work\android-sdk\platform-tools;

Open the cmd window and enter emulator–version and ADB version1-2, which are installed correctly.

Figure 1-2 See if the Android SDK is installed correctly

4.UnzipAndroid-ndk64-r10-windows-x86_64.zip

System environment variable path increased: C:\work\android-ndk-r10

Open the CMD window, CD to C:\work\android-ndk-r10\samples\hello-jni, enter Ndk-build1-3, which is installed correctly.

Figure 1-3 See if the Android Ndk is installed correctly

5.UnzipAdt-bundle-windows-x86_64-20140702.zip

After unpacking, the folder contains Eclipse, and the CDT and ADT plugins are already integrated.

Open eclipse->windows->preferences->android and change the SDK location to the path C:\WORK\ANDROID-SDK installed in the second step.

The NDK directory cannot be set at this time. Copy Com.android.ide.eclipse.ndk_23.0.2.1259578.jar to Eclipse's plugins directory, restart Eclipse, set the NDK path to the third step C:\work\ Android-ndk-r10,1-4.

Figure 1-4 Setting up the Android NDK path

At this point the Android environment is built, but the new project is still a few problems, such as the creation of Android app can not finish, drag edittext error, etc.

6.UseAndroid SDK ManagerUpdate

Open Eclipse->windows->androidsdk Manager, the tick must be installed.

Figure 1-5 the parts that must be installed

In addition to 4.4W, you must install another version of Android, or drag edittext error. 4.4. Version 2 is selected for installation.

Figure 1-6 Android another version installs

Note: If you are unable to download, use the flip-wall tool fg742.exe. After turning on Fg742.exe, set the Android SDK Manager->tools->options as


Figure 1-7 Android Sdkmanager proxy settings

7.CreateAndroid Virtual Device

Open Eclipse->windows->android Virtual device,create as shown.

How to use Android Virtual device See http://blog.csdn.net/bejustice/article/details/38111723

Figure 1-8 Android Virtualdevice Create

8.installationCygwin

It is now possible to Android Java The program was developed, but you will find that you cannot compile Android C + + program.

becauseNDKThe code must be compiled with Makeand theGCC, so you must first build aLinuxEnvironment andCygwinis one inWindowsrunning on the platformUnixSimulation Environment,It is for learningUnix/linuxoperating environment, or fromUnixto theWindowsapplication porting, which is very useful. Through it, you can not install theLinuxin the case of useNDKto compileC,C + +the code.

The specific installation process can refer to

Http://jingyan.baidu.com/article/6b97984d83dfe51ca2b0bf0e.html

The tenth step, you have to choose more of the following Aa bagautoconf2.1,automake1.10,binutils,Gcc-core,gcc-g++,Gcc4-core,gcc4-g++,gdb,Pcre,Pcre-devel,gawk, Make

At the end of the 12th step, you can compile the Android NDK C + + code by setting the Cygwin installation path in the system environment variable path.

9.Installing the Anti-compilation toolApktoolkit

This is no longer used in the original book of Apktool, one is because inconvenient, need to enter the CMD call, two is back to compile the latest version of Android APK may have some problems.

The Apktoolkit is powerful enough to decompile, rebuild, sign, optimize. APK and convert. apk and. dex files to. jar files.

Unzip directly, when using, simply drag the file to the appropriate area and click on the button.

For additional information, see http://bbs.pediy.com/showthread.php?t=188672

 

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.