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.
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.