android studio can't build project

2019-07-05 02:27发布

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.

3条回答
爷、活的狠高调
2楼-- · 2019-07-05 03:06

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

查看更多
太酷不给撩
3楼-- · 2019-07-05 03:14

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).

查看更多
干净又极端
4楼-- · 2019-07-05 03:26

It should be related to proxy settings.

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

查看更多
登录 后发表回答