简体   繁体   中英

Why android app dont build in Intellij IDEA?

I create my first android app in intellij idea editor but when build project get this error.

Error:Gradle: A problem occurred configuring root project 'TakZarf2'.

Could not resolve all dependencies for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:2.2.2. Required by: :TakZarf2:unspecified Could not resolve com.android.tools.build:gradle:2.2.2. Could not get resource ' https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom '. Could not GET ' https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom '. Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connect

My internet connection in right.

How to solve this? 在此处输入图片说明 在此处输入图片说明

Could be a firewall issue. Please check whether the URL - https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.2/ is accessible from a browser window.

If the above URL works on browser, check whether you have any HTTP proxy configured in IntelliJ. This is accessible from IntelliJ=>settings=>appearance and behavior=>system settings=>http proxy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM