简体   繁体   English

打开eclipse加载sdk时出错

[英]Error when loading sdk while opening eclipse

I have installed all packages on Android SDK manager.我已经在 Android SDK 管理器上安装了所有软件包。 And this is the first time i am using eclipse.这是我第一次使用 eclipse。 So I have created a virtual device too.所以我也创建了一个虚拟设备。 Now while i am trying to start my works on eclipse its shows some errors.现在,当我尝试在 eclipse 上开始我的工作时,它显示了一些错误。 I have tried many things can't solve this.我已经尝试了很多事情都无法解决这个问题。 Below is my error.下面是我的错误。 Please anyone help me to resolve this.请任何人帮我解决这个问题。

[2015-11-06 20:49:05 - Android SDK] Error when loading the SDK:

Error: Error parsing C:\Program Files (x86)\Android\android-sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml
cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point.
Error: Error parsing C:\Program Files (x86)\Android\android-sdk\system-images\android-22\android-wear\x86\devices.xml
cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point.
[2015-11-06 20:49:13 - appcompat_v7] C:\Users\Shakir\workspace\appcompat_v7\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
[2015-11-06 20:49:13 - appcompat_v7] 

I was also having this question after I defined my own skin for an AVD according to this site https://developer.android.com/studio/run/managing-avds.html .根据本网站https://developer.android.com/studio/run/managing-avds.html为 AVD 定义自己的皮肤后,我也遇到了这个问题。 I'v searched for this problem for quite a while without finding more workable answer than deleting the 'd:skin' line in the problem file "devices.xml"(This'll DISABLE your own skin defination for the AVD).我已经搜索了这个问题很长一段时间,但没有找到比删除问题文件“devices.xml”中的“d:skin”行更可行的答案(这将禁用您自己的 AVD 皮肤定义)。

Every time I'm about to start my work, firstly I remove (if not, the AVD can't be started.) the postfix ".old" which is added to the "devices.xml" by Eclipse when it's started and finds the so-called error which you've seen, next, I start the AVD which uses the "devices.xml" containing my own skin defination, at last I start Eclipse.每次我要开始工作时,首先我删除(如果没有,则无法启动 AVD。)后缀“.old”在 Eclipse 启动时添加到“devices.xml”并找到您已经看到了所谓的错误,接下来,我启动了使用包含我自己的皮肤定义的“devices.xml”的 AVD,最后我启动了 Eclipse。 Though it still warns about this error, I just ignore it before finding out the final solution.虽然它仍然警告这个错误,但在找到最终解决方案之前我只是忽略它。

In my openion, if you don't want to do special defination for the skin of your AVD, you can just try the "deleting".在我的开篇中,如果您不想对您的AVD的皮肤进行特殊定义,您可以尝试“删除”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM