1.安装Android开发环境只需要下载安装JDK和ADT(集成有Eclipse)。
2. In Eclipse, press Ctrl + Shift + O to import missing classes (Cmd + Shift + O on Mac)。可以自动添加需要的类。
3.windows上无法启动emulator。新建emulator提示设置RAM大于768MB可能无法启动,改成500MB即成功启动。
4.emulator上运行程序出现:
[2011-03-08 13:02:22 - HelloWorld] Failed to install HelloWorld.apk on device 'emulator-5554![2011-03-08 13:02:22 - HelloWorld] (null)[2011-03-08 13:02:23 - HelloWorld] Launch canceled!
Try changing the ADB connection timeout. I think it defaults that to 5000ms and I changed mine to 10000ms to get rid of that problem. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android.5.使用Android SDK Manager时,可能看不到应该出现的包,可以点击Packages->Reload来重新加载一下,并在网络较好的情况下使用,否则经常失败。并勾选Force https//...sources to be fetched using http://
6.为防止权限问题,可将开发环境搭建到用户主目录下。