名词解释:
SDK:Software Development Kit
AVD:Android Virtual Devices
ADT:Android Development Tools
1. Installing Android SDK
备注:我下载到 D:\Android\
2. Installing the ADT Plugin
Eclipse ->Help > Software Updates…. In the dialog that appears, click the Available Software tab.
设置 Windows->Preferences->Android-> SDK Location set path “D:\Android\android-sdk_r3-windows\android-sdk-windows”
Window->Android SDK and Android Manager ->Installed Packages 选择 Update All 按钮,下载使用SDK包,否则无法运行工程。
Creating an AVD:Eclipse->Window->Android SDK and Android Manager ->Virtual Devices 选择New按钮,创建一个AVD, 注意SD Card 至少8M以上。
3. Creating an Android Project
Eclipse create project
Select File > New > Project.
Select Android > Android Project, and click Next.
现在就可以运行 Eclipse->Run AS ->AndRoid Application,注意Android的虚拟器启动的时候,是很慢的。估计1分钟左右,如果控制台长时间显示 Waiting for HOME (‘android.process.acore’) to be launched… ,不要关闭,一直等下去。最后控制台打出 Success! ,就完成了。
显示结果如下: