Android ';实施';支持:recyclerview-v7:28.0.0';无法获取资源错误

Android ';实施';支持:recyclerview-v7:28.0.0';无法获取资源错误,android,gradle,android-recyclerview,Android,Gradle,Android Recyclerview,我正在使用androidstudio3.0&在我的Android项目中 我想补充一点 'implementation 'com.android.support:recyclerview-v7:28.0.0' 同步后,它会给我以下的错误,我不知道什么是错的。 无法解析配置的所有依赖项 ':app:debugRuntimeClasspath'. Could not determine artifacts for com.android.support:recyclerview-v7:28.0.0

我正在使用androidstudio3.0&在我的Android项目中 我想补充一点

'implementation 'com.android.support:recyclerview-v7:28.0.0'
同步后,它会给我以下的错误,我不知道什么是错的。 无法解析配置的所有依赖项

':app:debugRuntimeClasspath'.
Could not determine artifacts for com.android.support:recyclerview-v7:28.0.0
Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/support/recyclerview-v7/28.0.0/recyclerview-v7-28.0.0.aar'.
Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/support/recyclerview-v7/28.0.0/recyclerview-v7-28.0.0.aar'.
Connect to dl.google.com:443 [dl.google.com/192.168.1.1] failed: Connection refused (Connection refused)
Connection refused (Connection refused)
其他资料:

compileSdkVersion 28
minSdkVersion 16
targetSdkVersion 28

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
}


buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        google()
        jcenter()
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

从build.gradle中删除这些行并尝试再次同步,可能是这些行导致了问题

 androidTestImplementation 'com.android.support.test:runner:1.0.2'
 androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

从build.gradle中删除这些行并尝试再次同步,可能是这些行导致了问题

 androidTestImplementation 'com.android.support.test:runner:1.0.2'
 androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

为什么不使用androidX?但为什么它不起作用?你能给我解决方案吗?请添加你的
build.gradle(项目名称)
code我已经添加到其他“信息部分”。请查收。感谢您添加
maven{url“https://maven.google.com“}
jcenter()之后
为什么不使用androidX?但为什么这不起作用?你能给我解决方案吗?请添加你的
build.gradle(项目名称)
code我已经添加到其他“信息部分”。请查收。感谢您添加
maven{url“https://maven.google.com“}
jcenter()之后
感谢您的回复。我一定会试试的。谢谢你的回复。我一定要试试。