3

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:

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

Game is my project's name. I have struggled this problem with hours, but without any progress.

Sysphus
  • 194
  • 1
  • 3
  • 11

3 Answers3

4

It should be related to proxy settings.

Check following link to set proxy in android studio. AndroidStudio gradle proxy

Community
  • 1
  • 1
San
  • 5,567
  • 2
  • 26
  • 28
0

Try disabling Antivirus/Internet security and if you are using Windows then windows firewall. Try rebuilding the project. It worked for me.

Ashwini Shahapurkar
  • 6,586
  • 6
  • 26
  • 35
Amit
  • 11
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).

Tobiaws
  • 1
  • 1