Reputation: 119
android studio 3.0
error
Error:Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not resolve com.android.support:appcompat-v7:26.1.0. Required by: project :app Could not resolve com.android.support:appcompat-v7:26.1.0. Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom'. Could not GET 'https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom'. Connect to dl.google.com:443 [dl.google.com/172.217.17.110] failed: Connection timed out: connect Could not resolve com.android.support:appcompat-v7:26.1.0. Could not get resource 'https://jcenter.bintray.com/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom'. Could not GET 'https://jcenter.bintray.com/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom'. Connect to jcenter.bintray.com:443 [jcenter.bintray.com/159.122.18.156] failed: Connection timed out: connect
Upvotes: 0
Views: 17478
Reputation: 358
i was also facing this issue. place 'jcenter()' below the maven as shown below in project level gradle
allprojects {
repositories {
maven { url 'https://maven.google.com' }
jcenter()
}
Upvotes: 3
Reputation: 926
This type of error occurs when there is a problem in version you compiled.
Go to your app level gradle.
Then find compile / dependencies section .
Replace
implementation 'com.android.support.appcompat_v7 ........'
With
implementation 'com.android.support.appcompat_v7:26.+'
There are many possible causes of error. Since you have provided very limited information, this might work
Upvotes: 1