After removing the old android studio, I install a new one, (Beta)0.8.6. Build number:AI-135.1339820. When I try to build my project, it can't be built, the following is log:
删除旧的android studio后,我安装了一个新的,(Beta)0.8.6。构建数字:ai - 135.1339820。当我试图构建我的项目时,它不能被构建,以下是日志:
Error:A problem occurred configuring root project 'Game'.
Could not resolve all dependencies for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:0.12.2. Required by: :Game:unspecified Could not GET 'http://jcenter.bintray.com/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.pom'. Can't connect to SOCKS proxy:Connection refused
无法解析配置':classpath'的所有依赖项。不能解决com.android.tools.build:gradle:0.12.2。需要的::游戏:未指定的无法获得'http://jcenter.bintray.com/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.pom'。无法连接到SOCKS代理:连接拒绝?
Game is my project's name. I have struggled this problem with hours, but without any progress.
游戏是我的项目名称。我用了几个小时来解决这个问题,但没有任何进展。
3 个解决方案
#1
4
It should be related to proxy settings.
它应该与代理设置相关。
Check following link to set proxy in android studio. AndroidStudio gradle proxy
在android studio中检查以下链接以设置代理。AndroidStudio gradle代理
#2
0
Try disabling Antivirus/Internet security and if you are using Windows then windows firewall. Try rebuilding the project. It worked for me.
尝试禁用反病毒/网络安全,如果你使用的是Windows防火墙。试着重建项目。它为我工作。
#3
0
You need to ensure your proxy support https. If not you can force Android Studio to fetch dependencies and AS updates using HTTP instead of HTTPS (where available).
您需要确保您的代理支持https。如果不是,你可以强制Android Studio以HTTP代替HTTPS来获取依赖关系和更新。
#1
4
It should be related to proxy settings.
它应该与代理设置相关。
Check following link to set proxy in android studio. AndroidStudio gradle proxy
在android studio中检查以下链接以设置代理。AndroidStudio gradle代理
#2
0
Try disabling Antivirus/Internet security and if you are using Windows then windows firewall. Try rebuilding the project. It worked for me.
尝试禁用反病毒/网络安全,如果你使用的是Windows防火墙。试着重建项目。它为我工作。
#3
0
You need to ensure your proxy support https. If not you can force Android Studio to fetch dependencies and AS updates using HTTP instead of HTTPS (where available).
您需要确保您的代理支持https。如果不是,你可以强制Android Studio以HTTP代替HTTPS来获取依赖关系和更新。