Android的:如何避免XML验证失败的错误和升级成功2.X SDK? [英] Android:How to avoid XML verification failed error and Upgrading to 2.x SDK successfully?

查看:419
本文介绍了Android的:如何避免XML验证失败的错误和升级成功2.X SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有1.5 SDK在Mac O.S点¯xAndroid开发设置 - 的Eclipse 3.5。我想升级的SDK,这样我也跟着选择Eclipse的窗口 - > Android SDK和AVD管理器。但它抛出的错误如下:

I have setup for Android development with 1.5 SDK on Mac O.S X - Eclipse 3.5. I want to upgrade the SDK, so as i followed to choose Window->Android SDK and AVD Manager from Eclipse. But it throws error as follows:

XML验证失败
   https://dl-ssl.google.com/android/repository/repository.xml
  错误:CVC-elt.1:找不到元素的声明'SDK:sdk-库。无法抓取网址

XML verification failed for https://dl-ssl.google.com/android/repository/repository.xml. Error: cvc-elt.1: Cannot find the declaration of element 'sdk:sdk- repository'. Failed to fetch URL

我试过HTTP而不是https,但仍然得到同样的错误。我不知道为什么这样的废话错误出现。如果我看到Android的网站,
http://developer.android.com/intl/zh-CN/sdk /index.html
它的混乱。

I tried "http" instead of https, but still getting the same error. I don't know why such crap error comes. If i see Android website, http://developer.android.com/intl/zh-CN/sdk/index.html its confusing.

有人能指导我轻松地更新Android SDK中,无需卸载我的当前设置环境2.X或更高版本。

Could someone guide me easily to update Android SDK to 2.x or later without uninstalling my current setup environment.

感谢。我AP preciate的一种建议。

Thanks. I appreciate your kind suggestions.

推荐答案

如果您使用的是很旧版本的工具,你需要从的 http://developer.android.com/sdk/index.html

If you are using a very old version of the tools, you will need to download a newer starter package from http://developer.android.com/sdk/index.html

究其原因是,当我们发布第5版库XML文件的架构发生变化,但只有在修订4或更高版本的工具能适应架构更改。

The reason is that the schema of the repository XML file changed when we released rev 5, but only tools in revision 4 or higher can adapt to schema changes.

通过一旦你下载新的入门包可以从previous安装与更换新的工具文件夹的方式。这样,你就不必改变PATH的环境变量或者你有其他任何设置。

By the way once you download the new starter package you can replace the tools folder from your previous installation with the new one. That way you don't have to change PATH env var or any other setup you have.

这篇关于Android的:如何避免XML验证失败的错误和升级成功2.X SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆