Android Environment build step, and output a Helloworder
1: Download Android development environment and yes: SDK
adt-bundle-windows-x86_64-20140702
The version at this time is version 4.4
( Note: The development environment of the SDK version of how much, then you create the project, also need to how many versions of the match, otherwise will not install, will be error)
--------------------------------------------------------------------------------------------------------------- -------------------
2: Unzip open: After the folder is as follows:
Eclipse: The Eclipse tool that is currently paired with the current Android development version ---Exclusive Android-developed eclipse
SDK: is the current version of the Environment for Android Development Toolkit [inside: source, etc.]
SDK Manager.exe: Is the update download Android version of the development environment (download very slow, foreign, almost rarely used, will not be updated here)
--------------------------------------------------------------------------------------------------------------- --------------------
3: Configure the Environment
3.1: Need to configure Android JDK (because Android development is the Java encoding, so it also requires JDK support) [Green version of the JDK without Android, just configure environment variables]
Check the X-check JDK for success under DOS command java-vsersion
3.2: running Eclipse ADT ( without installation)
Configure an environment variable android_home is the path to the SDK directory for the keyword =android
Android_home=d:\java\adt-bundle-windows-x86_64-20140702\sdk
--------------------------------------------------------------------------------------------------------------- --------------------
4: Download the hippocampus simulator or the night simulator to install simultaneously
Purpose: In our development area, run test speed comparison faster after editing code.
(The Android Development Environment SDK also comes with an emulator, but it's very slow and we don't have to.)
5 tested.
Open Eclipse in the Android development environment
1: First open eclipse, after completely open
2: In Open simulator
Note: the two of them will be connected automatically.
If sometimes the strange connection does not have, also is normal phenomenon.
Processing method:
1: The simulator is turned off and opened again from the new.
2: Close Eclipse, emulator, open Task Manager at the same time, then turn Adb.exe off, and again open Eclipse, emulator.
3: The computer starts from the new.
The effect after a successful connection.
Open the DDMS Debug Monitoring service window first.
And then open it up again.
If no such effect occurs again, refresh it, as
If this still does not work, please follow the method described above to try to resolve.
---------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
At this point we have now set up the Android development environment. Now let's do a new Android small project, output Helloword Bar
6: Create an Android project
Right-click New
Next is directly next next.
Activity Name: Code (four main key hand)
Layout Name: Resource files for layouts
Resource Files : Resource files are css,string, audio, etc.
Click Edit result to:
The ID of the control, for example, is automatically generated.
We are running:
After running the
---------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
The above is the full Android environment with detailed process details and print output Helloword case, thank you for your visit to my blog, thank you for your support!
Android environment Configuration and Operation Helloword case