Android Studio cannot load components

I have a strange problem with the Android Studio SDK. I try to download some components, and when the download progress 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 this manually, the links work.

+5
source share
3 answers

It looks like you are trying to update Android Studio, but you have a proxy server that is not installed on it.

If you want to install it: Go to "Settings" → "Appearance @ Behavior" → "System Settings" → "HTTP Proxy".

+3
source

. , .

0

The following steps helped me. Step 1: File | Settings | Appearance and behavior | System Settings | HTTP proxy Step 2: Clear the password and click Ok.

0
source

Source: https://habr.com/ru/post/1663520/


All Articles