Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android sdk manager not fetching other sdk platform

Tags:

android

I downloaded the SDK ADT bundle for windows, everything is working well but Android SDK Manager is showing error

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: SSLPeerUnverified peer not authenticated

As I want to install other android platform.

like image 367
user1875022 Avatar asked Dec 04 '12 08:12

user1875022


People also ask

How do I fix Android SDK not found?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory. (C:\Users\..

How do I fix Android SDK file not found ADB?

Reinstalling the platform tools might fix this problem. Open Android Studio, click SDK Manager in the toolbar or click Tools > SDK Manager, click SDK Tools, then uncheck Android-SDK Platform-Tools (as shown above). After this, open C:\Users\Username\AppData\Local\Android\Sdk and delete the platform-tools folder.


2 Answers

Try using "http" instead of "https". Go to the Android SDK Manager -> Tools -> Options... and check "Force https://... sources to be fetched using http://...".

enter image description here

Also, you can set your proxy settings, if any.

like image 94
Luis Valdés Avatar answered Sep 18 '22 17:09

Luis Valdés


In Mac OS X, the solution is creating the file androidtool.cfg in our user .android folder and then add this line. Sure it is working also for Linux

sdkman.force.http=true

I hope that helps!

like image 22
Kasas Avatar answered Sep 21 '22 17:09

Kasas