Android SDK 14 - 无法创建 GTV 设备
我是一名 Google TV 开发人员,今天,在 android sdk 14 发布后不久,我更新了所有内容,从 android sdk 到 eclipse ADT。从那时起,我无法创建 Google TV 虚拟设备。我已经完全删除了所有内容并尝试进行全新安装。发生的情况如下:
重新下载仅包含 Android 3.1 和 Google TV 附加组件的 android sdk:
$ android list targets
Available Android targets:
----------
id: 1 or "android-12"
Name: Android 3.1
Type: Platform
API level: 12
Revision: 3
Skins: WXGA (default)
ABIs : armeabi
----------
id: 2 or "Google Inc.:Google TV Addon:12"
Name: Google TV Addon
Type: Add-On
Vendor: Google Inc.
Revision: 2
Based on Android 3.1 (API level 12)
Skins: WXGA, 1080p-overscan, 1080p, 720p (default), 720p-overscan
ABIs : x86
$ android create avd -n GTV -t 2
Auto-selecting single ABI x86
Exception in thread "main" java.lang.IllegalArgumentException: ABI Type x86 is unknown for target Standard Android platform 3.1
at com.android.sdklib.internal.avd.AvdManager.getImageRelativePath(AvdManager.java:885)
at com.android.sdklib.internal.avd.AvdManager.setImagePathProperties(AvdManager.java:1637)
at com.android.sdklib.internal.avd.AvdManager.createAvd(AvdManager.java:571)
at com.android.sdkmanager.Main.createAvd(Main.java:1110)
at com.android.sdkmanager.Main.doAction(Main.java:253)
at com.android.sdkmanager.Main.run(Main.java:119)
at com.android.sdkmanager.Main.main(Main.java:102)
有人可以给我一个提示,告诉我我做错了什么吗?还是谷歌的问题?
I'm a Google TV developer, and today, shortly after the android sdk 14 was released, I updated everything, from the android sdk to the eclipse ADT. Since then, I can't create a Google TV virtual device. I came to the point where I completely deleted everything and tried to do a fresh install. Here is what happens:
With a fresh download of the android sdk with only Android 3.1 and the Google TV add-on:
$ android list targets
Available Android targets:
----------
id: 1 or "android-12"
Name: Android 3.1
Type: Platform
API level: 12
Revision: 3
Skins: WXGA (default)
ABIs : armeabi
----------
id: 2 or "Google Inc.:Google TV Addon:12"
Name: Google TV Addon
Type: Add-On
Vendor: Google Inc.
Revision: 2
Based on Android 3.1 (API level 12)
Skins: WXGA, 1080p-overscan, 1080p, 720p (default), 720p-overscan
ABIs : x86
$ android create avd -n GTV -t 2
Auto-selecting single ABI x86
Exception in thread "main" java.lang.IllegalArgumentException: ABI Type x86 is unknown for target Standard Android platform 3.1
at com.android.sdklib.internal.avd.AvdManager.getImageRelativePath(AvdManager.java:885)
at com.android.sdklib.internal.avd.AvdManager.setImagePathProperties(AvdManager.java:1637)
at com.android.sdklib.internal.avd.AvdManager.createAvd(AvdManager.java:571)
at com.android.sdkmanager.Main.createAvd(Main.java:1110)
at com.android.sdkmanager.Main.doAction(Main.java:253)
at com.android.sdkmanager.Main.run(Main.java:119)
at com.android.sdkmanager.Main.main(Main.java:102)
Can someone give me a hint on what am I doing wrong?? Or is it a Google problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试以下解决方法:
在 ~/.android/avd/your_avd_name.avd/ 内部创建一个文件 'config.ini'
config.ini 应该如下所示:
更新
默认情况下,android 工具会创建~/.android/avd/ 内的 AVD 目录(在 Linux/Mac 上)、在 Windows XP 上为 C:\Documents and Settings\.android\ 以及在 Windows 7 和 Vista 上为 C:\Users\.android\ 。如果您想为 AVD 目录使用自定义位置,可以在创建 AVD 时使用 -p 选项来实现:
http://developer.android.com/tools/devices/managing-avds -cmdline.html
You might try this workaround:
inside of ~/.android/avd/your_avd_name.avd/ create a file 'config.ini'
config.ini should look like:
Update
By default, the android tool creates the AVD directory inside ~/.android/avd/ (on Linux/Mac), C:\Documents and Settings\.android\ on Windows XP, and C:\Users\.android\ on Windows 7 and Vista. If you want to use a custom location for the AVD directory, you can do so by using the -p option when you create the AVD:
http://developer.android.com/tools/devices/managing-avds-cmdline.html