Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android sdk download/update failing

I'm trying to update and install the latest Android SDK (API 8) and keep getting the following error:

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I'm running on OS X 10.6.3 If I visit the url in a browser I'm not getting any errors about an untrusted cert.

edit: I'm running Revision 5 of the Android SDK and AVD manager (if that makes a difference) edit: Tried downloading the latest android sdk (revision 6) and running everything from the command line and still no dice. I can only assume there's something either in my java installation or in os x on my machine.

like image 247
tad604 Avatar asked May 21 '10 13:05

tad604


2 Answers

Try go to settings inside /tools/android and uncheck the "force https..."

like image 188
Ovi Tisler Avatar answered Oct 06 '22 11:10

Ovi Tisler


Resolved this issue in windows xp, open your android SDK manager you will find Android sdk tools checkbox underneath Tools checkbox.Select and update your Android sdk tool then you will not get this error again and now you can download api 8 for android 2.2

like image 22
Vivek Tiwari Avatar answered Oct 06 '22 12:10

Vivek Tiwari