我剛剛開始了一個應用程序創意,我不得不通過手機自動執行一些我的計算機所做的事情。我從之前下載過sdk,但是我無法讓它定義一個用戶設備。我認爲這是一個與舊的SDK安裝的錯誤,所以我刪除了包括.android
文件夾在內的所有文件,並重新安裝了一次,但無濟於事。我的自定義設備仍然沒有顯示在列表中。用戶定義的設備不會顯示在設備定義列表上
當我嘗試添加自定義設備定義時,我會經歷所有步驟,設備顯示在設備定義選項卡下,它以XML格式寫入(格式錯誤)爲<username>/.android/devices.xml
,但它不顯示當我嘗試創建一個新的AVD並且當我重新啓動時,設備列表也從設備定義列表中消失。
我正在使用Windows 8 Pro x64和Eclipse Juno SDK Manager 21.0.1(這是2012年12月22日凌晨2點左右下載的)。我在Eclipse中使用的唯一插件是Subversive,ADT和Eclipse Marketplace(如果有問題的話)。
而且,這裏是<username>/.android/devices.xml
內容:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<d:devices xmlns:d="http://schemas.android.com/sdk/devices/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<d:device>
<d:name>Droid DNA</d:name>
<d:manufacturer>User</d:manufacturer>
<d:meta/>
<d:hardware>
<d:screen>
<d:screen-size>large</d:screen-size>
<d:diagonal-length>5.00</d:diagonal-length>
<d:pixel-density>xxhdpi</d:pixel-density>
<d:screen-ratio>long</d:screen-ratio>
<d:dimensions>
<d:x-dimension>1080</d:x-dimension>
<d:y-dimension>1920</d:y-dimension>
</d:dimensions>
<d:xdpi>440.58</d:xdpi>
<d:ydpi>440.58</d:ydpi>
<d:touch>
<d:multitouch>jazz-hands</d:multitouch>
<d:mechanism>finger</d:mechanism>
<d:screen-type>capacitive</d:screen-type>
</d:touch>
</d:screen>
<d:networking>
NFC
Wifi
Bluetooth</d:networking>
<d:sensors>
ProximitySensor
Gyroscope
LightSensor
Barometer
Compass
Accelerometer
GPS</d:sensors>
<d:mic>true</d:mic>
<d:camera>
<d:location>front</d:location>
<d:autofocus>true</d:autofocus>
<d:flash>true</d:flash>
</d:camera>
<d:camera>
<d:location>back</d:location>
<d:autofocus>true</d:autofocus>
<d:flash>true</d:flash>
</d:camera>
<d:keyboard>nokeys</d:keyboard>
<d:nav>nonav</d:nav>
<d:ram unit="GiB">2</d:ram>
<d:buttons>hard</d:buttons>
<d:internal-storage unit="GiB">
4</d:internal-storage>
<d:removable-storage unit="TiB"/>
<d:cpu>Generic CPU</d:cpu>
<d:gpu>Generic GPU</d:gpu>
<d:abi>
armeabi
mips
armeabi-v7a
x86</d:abi>
<d:dock/>
<d:power-type>battery</d:power-type>
</d:hardware>
<d:software>
<d:api-level>-</d:api-level>
<d:live-wallpaper-support>true</d:live-wallpaper-support>
<d:bluetooth-profiles/>
<d:gl-version>2.0</d:gl-version>
<d:gl-extensions/>
<d:status-bar>false</d:status-bar>
</d:software>
<d:state default="true" name="Portrait">
<d:description>The device in portrait orientation</d:description>
<d:screen-orientation>port</d:screen-orientation>
<d:keyboard-state>keyssoft</d:keyboard-state>
<d:nav-state>navhidden</d:nav-state>
</d:state>
<d:state name="Landscape">
<d:description>The device in landscape orientation</d:description>
<d:screen-orientation>land</d:screen-orientation>
<d:keyboard-state>keyssoft</d:keyboard-state>
<d:nav-state>navhidden</d:nav-state>
</d:state>
</d:device>
</d:devices>
請幫我,我發現試圖谷歌這個問題在AVD會寫「」而不是解決方案「」來指定小數位數,但這更像是一個語言環境問題,儘管我檢查了我的數據並沒有這樣做。