Build the Android environment and write the first android program.
Build an Android Environment
(1) required materials: eclipse, ADT, and SDK
:
ADT-15.0.0
Android-sdk-windows
Eclipse-jee-helios-win32
Jdk-8u65-windows-x64 http://pan.baidu.com/s/1o7Puo8y
(2) Installation Steps
The first step: Install ADT
Double-click eclipse and click OK.
Click help-> install new software
Click Add and then archive to put undecompressed ADT paths in Work with (as shown in)
Then select
Click next twice and select I accept... Click finish to complete installation and restart eclipse
The second step: Install the SDK
Go to eclipse
Click window> preferences> Android on the left and choose Android 4.0 on the right. In the sdk location, place the decompressed sdk in ()
---
Click OK to complete installation
The third step: Install AVD manager
Click window> AVD manager> new> enter relevant information ()
Click create AVD and the page appears.
Click Launch to see the following page
Write a hello world Program
The first step: File-> new select new project (as shown in)
Enter the project name
Select 4.0 ()
New package name, split
Click project name-> res-> layout-> Create Android XML File
Write as follows:
Click src-> com. cvit-> default. java file ()
T
The second step: Create an apk
1)
After creating an apk, You can import it to your Android phone,