"1" Installation JDK (Jdk-8u5-windows-x64.exe)
To test whether the installation was successful, click "Start"----"Run"----Enter CMD, enter "Java-version" at the command prompt and press ENTER to appear, which is the successful installation.
"2" Configure environment variables, right-click "My Computer"---"Properties"-----"advanced"---"Environment variables",
Select "New system variable" --popup "new system variable " dialog box, in "variable name Span lang= "en-us" > text box input "Java_home", "variable value " text box input jdk, click "OK " button,
InThe system variableOptions area, seePath variable, if it does not exist, creates a new variablePATH, inThe variable valuetext box, add"%java_home%\bin;%java_home%\jre\bin"; if there is alreadyPATH, select the variable, clickThe editbuttonDo not overwrite the originalpath settings, add ",%java_home%\bin;%java_home%\jre\bin ", click the OK button,
InThe system variableOptions area, seeCLASSPATH variable, if not present, creates a new variableCLASSPATH, inThe variable valuetext box, add“.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar "; otherwise select the variable, clickThe editbuttonDo not overwrite the originalCLASSPATHsettings, adding later";;; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar ",
The configuration of the test environment variable is now successful or not. enter "JAVAC" in the DOS command line window and the output Help information is configured correctly.
"3" Construction
Decompression Adt-bundle-windows-x86_64-20140321.rar
After unpacking, modify the Eclipse.ini in the Eclipse folder to add the following two lines in front of the-vmargs
-vm
D:\Program Files\java\jdk1.8.0_05\bin\javaw.exe
If you do not increase these two lines, you may receive the following error when you run Eclipse.exe
Decompression Android-ndk-r9d-windows-x86_64.zip
Under directory D:\adt-bundle-windows-x86_64-20140321\eclipse\, find Eclipse.exe, run exe, open "window-to-preferreces", Set up the NDK and SDK directories
A problem with the settings here will cause the following error:
Import a test project D:\android-ndk-r9d\samples\hello-jni
After the project is imported, add the compiler. Select items, right-click, "Properties"-"Builders"--"New"--"program"
Set it down as shown below.
Tick item
Put the compiler up to the first place
At this point, the environment is ready. If there is a problem with the settings here, the project could not generate the. So file, and there is an error "Fail to install *". apk"
To start the test:
The project may report a lot of problem, but this is no problem, will problem delete, clean the project, will generate so file
Add so to the runtime
Add after open configure Build Path, tick on the added so file, Eclipse is default does not automatically help you tick on the
Run the project
Android Development Environment Configuration