Handling XML Verification Failed Error on Mac while installing packages in Android SDK and AVD Manager

Apple LogoAndroid Logo

Error:

XML verification failed for https://dlssl.google.com/android/repository/repository.xml.
Error: java.lang.NullPointerException

Solution:

This error occurs on Mac because, Java 6 is not installed by default on osX 10.5.6 or before and you need Java 6 to run Android AVD and SDK Manager.

The easiest way to overcome this error is by installing the latest version of Java.
To install, do the following:

Go to Apple Menu ---> Software Update ---> Tick the checkbox of Java Software Update ---> Click Install

I found this as the easiest way to update Java.  I tried to download newer version of Java but later realized that I have wasted 10 minutes in searching for a direct download.

After the installation, now run the Android AVD and SDK Manager and try installing the packages.  If you are still getting some error, do the following:

Go to Applications ---> Utilities ---> Run Java Preferences (In some machines, Java Preferences application might be present in Java Folder).

In the General Tab, change the order of Java versions in both the Java Applet box and Java Applications box by moving the Java SE 6 to the top in the order of Java Versions.

After the above steps, Android SDK and AVD Manager should run smoothly.

Happy Programming 🙂

Viplav

Advertisements
Gallery | This entry was posted in Android, Development, Technology and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s