无法连接到android studio中的jcenter()

Shi*_*fan 7 android github gradle android-studio jcenter

我正在尝试在android studio中导入MusicBobber库.我下载并导入了示例项目但是当我同步项目时出现了这个错误:

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
Run Code Online (Sandbox Code Playgroud)

当我尝试打开https://jcenter.bintray.com时,网站将打开没有问题.我也在使用freegate代理.问题在哪里,我该怎么办?

Ima*_*ian 5

在Android Studio中,转到

文件>设置...>外观和行为>系统设置> HTTP代理

然后选择自动检测代理设置

最后同步你的项目.

注意

确保您的SDKAndroid Studiogradle都已更新.我使用这些系统的配置成功运行项目:

Android Studio 2.1.3

gradle这个-2.14.1

SDK:

Android支持存储库32

Google Play服务32

Android Repository 32