https://dl-ssl.google.com/android/repository/android-2.1_r01-windows.zip
如下文件解压缩到:/Android SDK/tools/下面
https://dl-ssl.google.com/android/repository/tools_r05-windows.zip
如下文件解压缩到:/Android SDK/usb_driver/下面
https://dl-ssl.google.com/android/repository/usb_driver_r03-windows.zip
如下文件解压缩到:/Android SDK/add-ons/下面
https://dl-ssl.google.com/android/repository/google_apis-3-r03.zip
https://dl-ssl.google.com/android/repository/google_apis-4_r02.zip
https://dl-ssl.google.com/android/repository/google_apis-5_r01.zip
https://dl-ssl.google.com/android/repository/google_apis-6_r01.zip
https://dl-ssl.google.com/android/repository/google_apis-7_r01.zip
解压后,即完成安装。
emulator: ERROR: unknown virtual device name: ‘****’
在运行程序, 在手机模拟器中查看结果的时候,发现如下错误:
emulator: ERROR: unknown virtual device name: ’****’
emulator: could not find virtual device named ’****’
具体原因,是因为我修改了用户文档目录,修改到了F盘目录下。 我将“F:Users账号”下面的“.android”复制一份到到“C:Users 账号”下即可。
附带两张运行成功效果图:
android example
android example 1
附加:对于第二个问题,我搜到了一个解决方法,如下:
I had the same problem: the latest update failed to install because it couldn't
rename the tools folder in android-sdk-windows. I'm using Avira antivirus and
disabling it didn't help, but I don't think it had anything to do with the AV program
anyway.
Fact is, running the Android SDK setup apparently uses items in the
"android-sdk-windowstools" directory. I'm on Win 7 x64 so maybe that causes some
unique situation - I'm not sure.
Solution:
- I made a copy of the tools folder itself (keeping it at the same directory tree
level, thus "tools" and "tools-copy" were both in the "android-sdk-windows" folder).
- I ran Android.bat from that copy
- I ran the update without problems (it updated the original,
not-being-used-at-the-moment tools folder, among whatever other items it needed to).
- I closed the SDK, deleted the folder (I had to kill the adb.exe process first - not
sure why that always persists but you can't delete the folder without doing that).
- I restarted the SDK from the normal (now-updated) tools folder. Worked like a charm!
Note that simply killing adb.exe was NOT sufficient to get around the original
issue... only by copying the tools folder and using the copy to run Android for the
duration of the update process was enough to rectify the problem.
I hope this helps others... it's quite vexing to have to spend time resolving basic
issues like this just to run an update.
最后,十分感谢GWF,并没有将的所有的相关网址都屏蔽掉,知道我还是搜索到了很多有用的信息!
Related posts:
Android and HTML5 开发手机应用 作为一个WEB开发者,HTML5让我兴奋,因为它可以将桌面应用程序功能带入浏览器中。但在国内,看着到处横行的IE8版本以下的浏览器,觉得到能大规模使用HTML5技术的那天,还遥遥无期。但面对iOS及Android等平台的手机用户越来越多,基于Webkit内核的移动浏览器一定能让HTML5先大规模应用起来。这将对对移动 Web 应用程序开发具有重大影响。 作为非常看好未来手机网络的我,也在一直研究Android平台的应用的开发,也许是因为自己更熟悉HTML及CSS、JS,并受到之前使用HTML和VC开发程序的影响,我也更愿意使用HTML来做Android程序的UI…. 09年,在开发《华夏风云》游戏的时候,使用了基于Google Gear插件来做了很多离线应用,可惜Gear已经不在更新开发,被HTML5取代。下面介绍基于HTML 5 的Web 应用程序的本地存储,不再废话,例子说明一切。 ...
win7修改%userprofile%路径 在Android 开发环境安装失败问题总结 win7下中,提到在运行程序, 在手机模拟器中查看结果的时候,发现如下错误: emulator: ERROR: unknown virtual device name:...
APK模拟器的皮肤设置