Android SDK更新失败,提示-> http://dl-ssl.google.com/android/repository/repository.xml 的 XML 验证失败
我是 Java 和 Android 新手。我正在尝试在 Debian Squeeze 上安装 Android SDK。我刚刚下载并安装了 SDK。当我尝试更新软件包列表时,出现以下错误。
XML verification failed for http://dl-ssl.google.com/android/repository/repository.xml.
Error: java.lang.NullPointerException
我已经检查了强制 https 使用 http,这是我看到的唯一错误。我错过了什么吗?
我刚刚检查了我的 java 版本
kumar@gentlehow-lx:/$ java --version
java version "1.5.0"
gij (GNU libgcj) version 4.4.5
...
,尝试执行 sudo 更新,但软件包未更新。
我通过手动下载 XML 来修复此问题,然后从 XML 中找出我需要的 zip 文件。下载文件后,我只需提取文件并将提取的文件夹移动到 SDK/platforms 文件夹。该 API 在“已安装的组件”中可见。
Am new to Java and Android. I am trying to install Android SDK on Debian Squeeze. I have just downloaded and setup the SDK. When I try to update the packages list I get following error.
XML verification failed for http://dl-ssl.google.com/android/repository/repository.xml.
Error: java.lang.NullPointerException
I have checked the force https to use http and this is the only error I see. Am I missing something?
I just checked my java version
kumar@gentlehow-lx:/$ java --version
java version "1.5.0"
gij (GNU libgcj) version 4.4.5
...
I tried to do a sudo update and the packages were not updated.
I fixed this by manually downloading the XML and then from XML I figured out which zip file I needed. After downloading the file I simply extracted the file and moved the extracted folder to SDK/platforms folders. The API was visible in in Installed components.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现这似乎是 java-gcj 的问题。
一旦我安装了oracle java并停止使用java-gcj,错误就消失了。
您可以在这里获取 Oracle Java: http://www.oracle.com /technetwork/java/javase/downloads/index.html
另外,在安装 oracle java 后以及使用 Fedora 时,我必须发出以下两个命令才能将 oracle java 设为默认值:
安装后,运行 'java -version' 应该会给你一个类似的输出来验证它是否正确安装:
重新运行 android 工具,一切都应该正常。
I've found that this seems to be an issue with the java-gcj.
Once I installed the oracle java and stopped using java-gcj the error went away.
You can grab the oracle java here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Also, after installing oracle java and when using Fedora I had to issue the following two commands to get the oracle java to be the default:
After installation, running 'java -version' should give you a simliar output to verify it installed correctly:
Re-run the android tools and everything should work.
试试这个:找到文件 androidtool.cfg 并添加以下行:
然后重试。
try this: find the file androidtool.cfg and add the following line:
and try again.