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.
Try disabling Antivirus/Internet security and if you are using Windows then windows firewall. Try rebuilding the project. It worked for me.
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).
It should be related to proxy settings.
Check following link to set proxy in android studio. AndroidStudio gradle proxy