eclipse 安卓sdk安装。错误:发现以元素“d:skin”开头的无效内容。此时不需要子元素
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30425461/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android sdk installation. Error: Invalid content was found starting with element 'd:skin'. No child element is expected at this point
提问by BlockchainDeveloper
I am setting up eclipse and the Android sdk environment on Linux Ubuntu 14.04. I have followed thistutorial exactly and now I am almost at the end, but I get this "no child element is expected at this point"
我正在 Linux Ubuntu 14.04 上设置 eclipse 和 Android sdk 环境。我完全按照本教程进行了操作,现在我快要结束了,但是我得到了这个“此时不需要子元素”
What do I need to do?
我需要做什么?
I am new to Linux, and yes I have looked up the answer to this already, but the answer I found doesn't seem to match up with what I need exactly and since I am a new user, I can't figure this out on my own.
我是 Linux 新手,是的,我已经查找了这个问题的答案,但是我找到的答案似乎与我所需要的并不完全相符,而且由于我是新用户,我无法弄清楚这一点靠我自己。
回答by Amrit Pal Singh
The solution is to remove package Android Wear ARM EABI v7a system imageavailable under Android 5.1.1 (API 22)to resolve this problem.
解决方案是删除Android 5.1.1 (API 22)下可用的Android Wear ARM EABI v7a 系统映像包来解决此问题。
Reference - Error Loading the sdk when eclipse is started
参考 - Eclipse 启动时加载 sdk 出错
回答by Malith
Just open the Android SDK Managerand delete boththe Android Wear ARM EABI v7a system imageand Androi Wear Intel x86 Atom SystemImageunder Android 5.1.1 (API 22)
只要打开Android的SDK管理器和删除都在Android Wear ARM EABI V7A系统映像和Androi磨损英特尔的Atom的x86 SystemImage下的Android 5.1.1(API 22)
It worked for me.
它对我有用。
回答by kamleshwer purohit
Delete the Android Wear package from SDK manager And restart the eclipse
从 SDK 管理器中删除 Android Wear 包并重新启动 eclipse
package (i) Android Wear ARM EABI v7a system image(5.1 API 22) (ii) Android Wear Intel x86 Atom System Image(5.1 API 22)
包 (i) Android Wear ARM EABI v7a 系统映像(5.1 API 22) (ii) Android Wear Intel x86 Atom 系统映像(5.1 API 22)
回答by user5032855
I solved this problem by providing comment to d:skin element.open XML file from eclipse then then give comment using sysntax.
我通过从 Eclipse 向 d:skin element.open XML 文件提供注释,然后使用 sysntax 给出注释来解决这个问题。
XML file is stored in system images package(android wear/armeabi-v7a and x86)
XML 文件存储在系统映像包中(androidwear/armeabi-v7a 和 x86)
Instead of deleting XML file it is better option.
而不是删除 XML 文件,它是更好的选择。
回答by Amreen
Delete the "Android Wear" folder from the below path:
从以下路径中删除“Android Wear”文件夹:
C:\Users\amreen.s(your user folder name)\AppData\Local\Android\sdk\system-images\android-22
回答by User123456
Copy the default devices.xml file from : /home/user/android-sdk/tools/lib/devices.xml
从以下位置复制默认的 devices.xml 文件:/home/user/android-sdk/tools/lib/devices.xml
and paste it in the below paths: /android-sdk/system-images/android-22/android-wear/armeabi-v7a/ and /android-sdk/system-images/android-22/android-wear/x86/
并将其粘贴到以下路径中:/android-sdk/system-images/android-22/android-wear/armeabi-v7a/ 和 /android-sdk/system-images/android-22/android-wear/x86/
This is a alternative solution, however, before replacing the devices.xml, take backup of the existing devices.xml file in these folders.
这是一种替代解决方案,但是,在替换 devices.xml 之前,请备份这些文件夹中的现有 devices.xml 文件。