首页 > 解决方案 > Error 403 Forbidden : Impossible to access to jcenter

问题描述

From this morning, gradle build failed due to error when accessing to jcenter :

Could not resolve all artifacts for configuration ':app:debugCompileClasspath'. Could not resolve org.koin:koin-android:2.2.1. Required by: project :app > Could not resolve org.koin:koin-android:2.2.1. > Could not get resource 'https://jcenter.bintray.com/org/koin/koin-android/2.2.1/koin-android-2.2.1.module'. > Could not GET 'https://jcenter.bintray.com/org/koin/koin-android/2.2.1/koin-android-2.2.1.module'. Received status code 403 from server: Forbidden > Could not resolve org.koin:koin-android:2.2.1. > Could not get resource 'https://jcenter.bintray.com/org/koin/koin-android/2.2.1/koin-android-2.2.1.module'. > Could not GET 'https://jcenter.bintray.com/org/koin/koin-android/2.2.1/koin-android-2.2.1.module'. Received status code 403 from server: Forbidden

I saw Jcenter Maintenance last night (https://status.bintray.com/). Does anyone else have this concern?

标签: androidgradlejcenter

解决方案


在您的项目级别 build.gradle 文件中替换Jcenter()为。MavenCentral()例如:

repositories {
    google()
    mavenCentral() }

// Jcenter() 替换


推荐阅读