Cannot connect to jcenter () in android studio

I am trying to import the MusicBobber library into an android studio. I downloaded and imported a sample project, but when I synchronized the project, this error appeared:

Error:A problem occurred configuring project ':app'.
    A problem occurred configuring project ':audiowidget'.
    Could not download support-media-compat.aar (com.android.support:support-media-compat:24.2.0)
    Could not get resource 'https://jcenter.bintray.com/com/android/support/support-media-compat/24.2.0/support-media-compat-24.2.0.aar'.  
    Could not GET 'https://jcenter.bintray.com/com/android/support/support-media-compat/24.2.0/support-media-compat-24.2.0.aar'.  
    Connection to 'https://jcenter.bintray.com' refused

when I try to open https://jcenter.bintray.com , the site will open without problems. I also use freegate for proxies. where is the problem and what should i do?

+4
source share
1 answer

In Android Studio, go to

File> Preferences ...> Appearance and Behavior> System Preferences> HTTP Proxy

-

- .

, SDK Android Studio gradle . :

Android Studio 2.1.3

gradle -2.14.1

SDK:

Android 32

Google Play 32

Android Repository 32

+3

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


All Articles