【问题标题】:Error when loading sdk while opening eclipse打开eclipse时加载sdk时出错
【发布时间】:2015-11-06 15:20:33
【问题描述】:

我已在 Android SDK 管理器上安装了所有软件包。这是我第一次使用 eclipse。所以我也创建了一个虚拟设备。现在,当我尝试在 Eclipse 上开始我的工作时,它显示了一些错误。我尝试了很多事情都无法解决这个问题。以下是我的错误。请任何人帮我解决这个问题。

[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] 

【问题讨论】:

标签: java android xml eclipse


【解决方案1】:

根据此站点https://developer.android.com/studio/run/managing-avds.html 为 AVD 定义了自己的皮肤后,我也遇到了这个问题。我已经搜索了这个问题很长一段时间,但没有找到比删除问题文件“devices.xml”中的“d:skin”行更可行的答案(这将禁用您自己的 AVD 皮肤定义)。

每次我要开始工作时,首先我删除(如果没有,则无法启动 AVD。)Eclipse 添加到“devices.xml”时的后缀“.old”启动并找到您所看到的所谓错误,接下来,我启动使用包含我自己的皮肤定义的“devices.xml”的 AVD,最后我启动 Eclipse。虽然它仍然会警告这个错误,但我只是在找出最终解决方案之前忽略它。

在我看来,如果您不想对您的 AVD 的皮肤进行特殊定义,您可以尝试“删除”。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-24
    • 1970-01-01
    相关资源
    最近更新 更多