简体   繁体   English

在Ubuntu 12.04上安装Android SDK 1.6时出现XML解析错误

[英]XML parse error on installing Android SDK 1.6 on Ubuntu 12.04

I'm getting the following error after going through the setup /android-sdk-linux/tools/android. 通过安装程序/ android-sdk-linux / tools / android后出现以下错误。

XML verification failed for http://dl-ssl.google.com/android/repository/repository.xml . http://dl-ssl.google.com/android/repository/repository.xml的 XML验证失败。 Error: cvc-elt.1: Cannot find the declaration of element 'sdk:sdk-repository'. 错误:cvc-elt.1:找不到元素'sdk:sdk-repository'的声明。 Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml , reason: Unknown 无法获取URL http://dl-ssl.google.com/android/repository/repository.xml ,原因:未知

I have checked in ~/.android/androidtool.cfg and sdkman.force.http=true is correctly set. 我已经签入〜/ .android / androidtool.cfg和sdkman.force.http = true已正确设置。

Just FYI, I'm working with RhoMobile which is not compatible with the newest SDK so I had to use the newest of the old version. 仅供参考,我正在使用RhoMobile,它与最新的SDK不兼容,因此我必须使用最新的旧版本。 I read that the XML was reconfigured somewhere back in 1.5, but if that is the case, 1.6 shouldn't have issues. 我读到XML在1.5中重新配置过,但是如果是这样的话,1.6应该不会有问题。

I also verified that the XML file does contain data by loading it in a browser. 我还通过将XML文件加载到浏览器中来验证它是否包含数据。

That's all the trouble shooting I've done so far. 到目前为止,这就是我拍摄时遇到的所有麻烦。 I don't know how else to approach this. 我不知道该怎么办。 I'm stumped. 我难倒。

Half my kingdom for a useful answer! 我的王国一半有用答案!

I never ended up being able to get SDK 1.6 to work, but I realized that the newest SDK does actually work, the directions on Rhomobile's site for Android SDK install are just out of date. 我从来没有能够使SDK 1.6正常运行,但是我意识到最新的SDK确实可以正常工作, Rhomobile网站上有关Android SDK安装的说明已经过时了。 If you use the /android-sdk-linux/tools/android tool in the new SDK, you won't be able to follow the directions given, but common sense can get you through the interface and then the issues above are no longer present. 如果您在新的SDK中使用/ android-sdk-linux / tools / android工具,则将无法按照给出的说明进行操作,但是常识可以帮助您通过界面,因此上述问题不再存在。

Hope this helps someone else! 希望这对别人有帮助!

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

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