To compile an android program, you must install JDK, eclipse, and Android SDK.
The installation path of the android SDK should not be in program file or program file (x86); otherwise, it will be very strange during debugging. It is best to directly put it in c: \ android. (If you want to put it under program files, you can also configure the adroid SDK path in eclipse by using "C: \ progra ~ 1 \ Android \").
Tools/Raw Materials
Method/step
-
Open eclipse's help-> install new software
-
Add address: https://dl-ssl.google.com/android/eclipse/ in the work with Column
-
Configure the android SDK path: open window> preferences
-
Enter the address of the andorid SDK:
-
Note the buttons on the toolbar:
-
Click the first button and select the SDK version to be installed:
-
I have installed two versions: 3.2 and 2.3.3.
-
Then you can click the second button to create an android project:
-
The following code is automatically generated:
-
Right-click the project and select Debug:
-
Wait a long time...
-
Android loaded:
-
Click "menu" to enter the program we wrote:
Reference http://tarena3g.com.cn/3g_android.html