1、错误描述
[2015-06-10 20:53:50 - Android SDK] Error when loading the SDK: Error: Error parsing D:\Android\android-sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml cvc-complex-type.2.4.d: 发现了以元素 'd:skin' 开头的无效内容。此处不应含有子元素。 Error: Error parsing D:\Android\android-sdk\system-images\android-22\android-wear\x86\devices.xml cvc-complex-type.2.4.d: 发现了以元素 'd:skin' 开头的无效内容。此处不应含有子元素。
2、错误原因
devices.xml:
<?xml version="1.0" encoding="UTF-8"?> <d:devices xmlns:d="http://schemas.android.com/sdk/devices/1"> <d:device> <d:name>Android Wear Square</d:name> <d:id>wear_square</d:id> <d:manufacturer>Google</d:manufacturer> <d:meta/> <d:hardware> <d:screen> <d:screen-size>small</d:screen-size> <d:diagonal-length>1.65</d:diagonal-length> <d:pixel-density>hdpi</d:pixel-density> <d:screen-ratio>long</d:screen-ratio> <d:dimensions> <d:x-dimension>280</d:x-dimension> <d:y-dimension>280</d:y-dimension> </d:dimensions> <d:xdpi>239.99</d:xdpi> <d:ydpi>239.99</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> Bluetooth Wifi NFC </d:networking> <d:sensors> Accelerometer Barometer Compass GPS Gyroscope LightSensor ProximitySensor </d:sensors> <d:mic>true</d:mic> <d:keyboard>qwerty</d:keyboard> <d:nav>dpad</d:nav> <d:ram unit="MiB">512</d:ram> <d:buttons>hard</d:buttons> <d:internal-storage unit="KiB">7811891</d:internal-storage> <d:removable-storage unit="TiB"/> <d:cpu>Qualcomm Snapdragon S4 Pro</d:cpu> <d:gpu>Adreno 320</d:gpu> <d:abi>armeabi-v7a</d:abi> <d:dock/> <d:power-type>battery</d:power-type> <d:skin>AndroidWearSquare</d:skin> </d:hardware> <d:software> <d:api-level>20-</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Portrait with keyboard"> <d:description>The device in portrait orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Landscape with keyboard"> <d:description>The device in landscape orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:tag-id>android-wear</d:tag-id> </d:device> <d:device> <d:name>Android Wear Square</d:name> <d:id>wear_square_320</d:id> <d:manufacturer>Google</d:manufacturer> <d:meta/> <d:hardware> <d:screen> <d:screen-size>small</d:screen-size> <d:diagonal-length>1.65</d:diagonal-length> <d:pixel-density>hdpi</d:pixel-density> <d:screen-ratio>long</d:screen-ratio> <d:dimensions> <d:x-dimension>320</d:x-dimension> <d:y-dimension>320</d:y-dimension> </d:dimensions> <d:xdpi>271</d:xdpi> <d:ydpi>271</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> Bluetooth Wifi NFC </d:networking> <d:sensors> Accelerometer Barometer Compass GPS Gyroscope LightSensor ProximitySensor </d:sensors> <d:mic>true</d:mic> <d:keyboard>qwerty</d:keyboard> <d:nav>dpad</d:nav> <d:ram unit="MiB">512</d:ram> <d:buttons>hard</d:buttons> <d:internal-storage unit="KiB">7811891</d:internal-storage> <d:removable-storage unit="TiB"/> <d:cpu>Qualcomm Snapdragon S4 Pro</d:cpu> <d:gpu>Adreno 320</d:gpu> <d:abi>armeabi-v7a</d:abi> <d:dock/> <d:power-type>battery</d:power-type> <d:skin>AndroidWearSquare320x320</d:skin> </d:hardware> <d:software> <d:api-level>22-</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Portrait with keyboard"> <d:description>The device in portrait orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Landscape with keyboard"> <d:description>The device in landscape orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:tag-id>android-wear</d:tag-id> </d:device> <d:device> <d:name>Android Wear Round</d:name> <d:id>wear_round</d:id> <d:manufacturer>Google</d:manufacturer> <d:meta/> <d:hardware> <d:screen> <d:screen-size>small</d:screen-size> <d:diagonal-length>1.65</d:diagonal-length> <d:pixel-density>hdpi</d:pixel-density> <d:screen-ratio>long</d:screen-ratio> <d:dimensions> <d:x-dimension>320</d:x-dimension> <d:y-dimension>320</d:y-dimension> </d:dimensions> <d:xdpi>239.99</d:xdpi> <d:ydpi>239.99</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> Bluetooth Wifi NFC </d:networking> <d:sensors> Accelerometer Barometer Compass GPS Gyroscope LightSensor ProximitySensor </d:sensors> <d:mic>true</d:mic> <d:keyboard>qwerty</d:keyboard> <d:nav>dpad</d:nav> <d:ram unit="MiB">512</d:ram> <d:buttons>hard</d:buttons> <d:internal-storage unit="KiB">7811891</d:internal-storage> <d:removable-storage unit="TiB"/> <d:cpu>Qualcomm Snapdragon S4 Pro</d:cpu> <d:gpu>Adreno 320</d:gpu> <d:abi>armeabi-v7a</d:abi> <d:dock/> <d:power-type>battery</d:power-type> <d:skin>AndroidWearRound</d:skin> </d:hardware> <d:software> <d:api-level>20-</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Portrait with keyboard"> <d:description>The device in portrait orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Landscape with keyboard"> <d:description>The device in landscape orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:tag-id>android-wear</d:tag-id> <d:boot-props> <d:boot-prop> <d:prop-name>ro.emulator.circular</d:prop-name> <d:prop-value>true</d:prop-value> </d:boot-prop> </d:boot-props> </d:device> <d:device> <d:name>Android Wear Round</d:name> <d:id>wear_round_400</d:id> <d:manufacturer>Google</d:manufacturer> <d:meta/> <d:hardware> <d:screen> <d:screen-size>small</d:screen-size> <d:diagonal-length>1.65</d:diagonal-length> <d:pixel-density>hdpi</d:pixel-density> <d:screen-ratio>long</d:screen-ratio> <d:dimensions> <d:x-dimension>400</d:x-dimension> <d:y-dimension>400</d:y-dimension> </d:dimensions> <d:xdpi>246</d:xdpi> <d:ydpi>246</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> Bluetooth Wifi NFC </d:networking> <d:sensors> Accelerometer Barometer Compass GPS Gyroscope LightSensor ProximitySensor </d:sensors> <d:mic>true</d:mic> <d:keyboard>qwerty</d:keyboard> <d:nav>dpad</d:nav> <d:ram unit="MiB">512</d:ram> <d:buttons>hard</d:buttons> <d:internal-storage unit="KiB">7811891</d:internal-storage> <d:removable-storage unit="TiB"/> <d:cpu>Qualcomm Snapdragon S4 Pro</d:cpu> <d:gpu>Adreno 320</d:gpu> <d:abi>armeabi-v7a</d:abi> <d:dock/> <d:power-type>battery</d:power-type> <d:skin>AndroidWearRound400x400</d:skin> </d:hardware> <d:software> <d:api-level>22-</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Portrait with keyboard"> <d:description>The device in portrait orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Landscape with keyboard"> <d:description>The device in landscape orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:tag-id>android-wear</d:tag-id> <d:boot-props> <d:boot-prop> <d:prop-name>ro.emulator.circular</d:prop-name> <d:prop-value>true</d:prop-value> </d:boot-prop> </d:boot-props> </d:device> <d:device> <d:name>Android Wear Round Chin</d:name> <d:id>wear_round_chin_320_290</d:id> <d:manufacturer>Google</d:manufacturer> <d:meta/> <d:hardware> <d:screen> <d:screen-size>small</d:screen-size> <d:diagonal-length>1.65</d:diagonal-length> <d:pixel-density>tvdpi</d:pixel-density> <d:screen-ratio>notlong</d:screen-ratio> <d:dimensions> <d:x-dimension>320</d:x-dimension> <d:y-dimension>290</d:y-dimension> </d:dimensions> <d:xdpi>205</d:xdpi> <d:ydpi>205</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> Bluetooth Wifi NFC </d:networking> <d:sensors> Accelerometer Barometer Compass GPS Gyroscope LightSensor ProximitySensor </d:sensors> <d:mic>true</d:mic> <d:keyboard>qwerty</d:keyboard> <d:nav>dpad</d:nav> <d:ram unit="MiB">512</d:ram> <d:buttons>hard</d:buttons> <d:internal-storage unit="KiB">7811891</d:internal-storage> <d:removable-storage unit="TiB"/> <d:cpu>Qualcomm Snapdragon S4 Pro</d:cpu> <d:gpu>Adreno 320</d:gpu> <d:abi>armeabi-v7a</d:abi> <d:dock/> <d:power-type>battery</d:power-type> <d:skin>AndroidWearRoundChin320x290</d:skin> </d:hardware> <d:software> <d:api-level>22-</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</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>keyshidden</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Portrait with keyboard"> <d:description>The device in portrait orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:state name="Landscape with keyboard"> <d:description>The device in landscape orientation with a keyboard open</d:description> <d:screen-orientation>land</d:screen-orientation> <d:keyboard-state>keysexposed</d:keyboard-state> <d:nav-state>navexposed</d:nav-state> </d:state> <d:tag-id>android-wear</d:tag-id> <d:boot-props> <d:boot-prop> <d:prop-name>ro.emulator.circular</d:prop-name> <d:prop-value>true</d:prop-value> </d:boot-prop> <d:boot-prop> <d:prop-name>ro.emu.win_outset_bottom_px</d:prop-name> <d:prop-value>30</d:prop-value> </d:boot-prop> </d:boot-props> </d:device> </d:devices>
3、解决办法
(1)删除D:\Android\android-sdk\system-images\android-22\android-wear中的android-wear
(2)用D:\Android\android-sdk\tools\lib下的devices.xml替换D:\Android\android-sdk\system-images\android-22\android-wear\x86下的devices.xml