Android SDK中更新失败,​​saying-> XML验证失败http://dl-ssl.google.com/android/repository/repository.xml [英] Android SDK update fails, saying-> XML verification failed for http://dl-ssl.google.com/android/repository/repository.xml

查看:153
本文介绍了Android SDK中更新失败,​​saying-> XML验证失败http://dl-ssl.google.com/android/repository/repository.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是新来的Java和Android。我想在Debian挤压安装Android SDK。我刚才下载并安装该SDK。当我尝试更新我得到以下错误的软件包列表。

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

我已经检查了力HTTPS使用HTTP,这是我看到的唯一错误。我缺少的东西吗?

I have checked the force https to use http and this is the only error I see. Am I missing something?

我刚刚检查了我的java版

I just checked my java version

kumar@gentlehow-lx:/$ java --version
java version "1.5.0"
gij (GNU libgcj) version 4.4.5
...

我试图做一个sudo的更新并没有更新的软件包。

I tried to do a sudo update and the packages were not updated.

我通过手动下载的XML解决了这个问题,然后从XML我想通了,我需要哪些zip文件。下载文件后,我只是提取的文件,并提出提取的文件夹SDK /平台文件夹。该API是在安装的组件可见。

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.

推荐答案

我发现这似乎是与Java-gcj的一个问题。

I've found that this seems to be an issue with the java-gcj.

在我安装了Oracle的Java和使用Java的GCJ错误走停了下来。

Once I installed the oracle java and stopped using java-gcj the error went away.

您可以在这里抢甲骨文的Java: HTTP:// WWW。 oracle.com/technetwork/java/javase/downloads/index.html

You can grab the oracle java here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

此外,安装Oracle Java和Fedora的使用后,当我不得不发出以下两个命令来获得甲骨文Java成为默认的:

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:

sudo alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_25/bin/java 20000
sudo alternatives --install /usr/bin/javaws /usr/java/jdk1.6.0_25/bin/javaws 20000

安装完成后,运行Java的版本应该给你一个这类似于输出,以验证是否正确安装:

After installation, running 'java -version' should give you a simliar output to verify it installed correctly:

java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Server VM (build 20.0-b11, mixed mode)

重新运行Android的工具,一切都应该工作。

Re-run the android tools and everything should work.

这篇关于Android SDK中更新失败,​​saying-> XML验证失败http://dl-ssl.google.com/android/repository/repository.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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