Android SDK中14 - 不能创建GTV设备 [英] Android SDK 14 - Can't Create GTV device
问题描述
我是谷歌电视的开发,今天,Android SDK的14发布后不久,我更新了一切,从Android SDK到Eclipse ADT。从那时起,我不能创建一个谷歌电视的虚拟设备。我来到那里,我彻底删除一切,试图做一个新的安装点。这是发生了什么:
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:
随着Android SDK的只有安卓3.1新下载的谷歌电视附加:
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?
推荐答案
您可以尝试以下解决方法:
You might try this workaround:
〜/ .android / AVD / your_avd_name.avd /内创建一个文件的config.ini
inside of ~/.android/avd/your_avd_name.avd/ create a file 'config.ini'
config.ini文件应该是这样的:
config.ini should look like:
hw.lcd.density=213
hw.keyboard.charmap=Emulator
skin.name=720.p
skin.path=add-ons/addon-google_tv-google_inc_-12/skins/720p
hw.cpu.arch=x86
abi.type=x86
vm.heapSize=256
hw.ramSize=1024
disk.dataPartition.size=128
image.sysdir.2=platforms/android-12/images/
image.sysdir.1=add-ons/addon-google_tv-google_inc_-12/images/x86/
更新
默认情况下,Android的工具创建的内部〜/ .android / AVD /的AVD目录(在Linux / Mac的),C:\ Documents和Settings \ .android \在Windows XP,和C:\用户\ .android \在Windows 7和Vista。如果你想使用自定义的位置为AVD目录,你可以使用-p选项来实现,当你创建的AVD: http://developer.android.com/tools/devices/managing-avds -cmdline.html
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
这篇关于Android SDK中14 - 不能创建GTV设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!