Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Sdk Manager Failed to download any source list

I'm trying to download platform-tools from Sdk Manager. but when I run :C:\Users\tavak\AppData\Local\Android\Sdk\tools\bin\sdkmanager --list or any other commands related like \sdkmanager platform-tools I get this error :

Warning: Failed to download any source lists! Warning: java.io.FileNotFoundException: https://dl.google.com/android/repository/repository2-1.xml

The antivirus is disabled , and I'm running a proxy in whole device. I can successfully open the url in my browser. help me if possible !

like image 764
mohammad tavakoli Avatar asked Jul 03 '18 12:07

mohammad tavakoli


1 Answers

If you are using proxy, you need to specify your proxy settings:

sdkmanager --list --verbose --no_https --proxy=http --proxy_host=127.0.0.1 --proxy_port=8118
like image 134
Farshid Ashouri Avatar answered Nov 11 '22 13:11

Farshid Ashouri