Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio cannot download components

I have a strange issue with Android Studio SDK. I am trying to download some components and when download progress achieved is 100%, I get an error:

Preparing "Install Google Repository".
Downloading https://dl.google.com/android/repository/google_m2repository_gms_v8_rc42_wear_2a3.zip
An error occurred while preparing SDK package Google Repository: Cannot download 'https://dl.google.com/android/repository/google_m2repository_gms_v8_rc42_wear_2a3.zip': Read timed out
, response: 200 OK.
"Install Google Repository" failed.
Preparing "Install Android Support Repository".
Downloading https://dl.google.com/android/repository/android_m2repository_r40.zip
An error occurred while preparing SDK package Android Support Repository: Cannot download 'https://dl.google.com/android/repository/android_m2repository_r40.zip': Read timed out
, response: 200 OK.
"Install Android Support Repository" failed.
Failed packages:
- Google Repository (extras;google;m2repository)
- Android Support Repository (extras;android;m2repository)

When I do it manually, links work.

like image 272
Michal Bialek Avatar asked Oct 17 '22 20:10

Michal Bialek


1 Answers

It's look like you are trying to update Android Studio but you have a proxy which is not set in it.

If you wish to set one : Go to Preferences -> Appearence @ Behavior -> System settings -> HTTP Proxy.

like image 112
Thomas Avatar answered Oct 21 '22 07:10

Thomas