TL; 博士
在 JCenter 访问 Kodein 核心包是未经授权的。
细节
Unauthorized
我们正在使用 Kodein 进行依赖注入,但是当 Gradle 尝试下载任何org.kodein.*
工件时,JCenter 服务器突然返回。
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not resolve org.kodein.di:kodein-di-framework-android-x:6.1.0.
Required by:
project :app
> Could not resolve org.kodein.di:kodein-di-framework-android-x:6.1.0.
> Could not get resource 'https://jitpack.io/org/kodein/di/kodein-di-framework-android-x/6.1.0/kodein-di-framework-android-x-6.1.0.pom'.
> Could not HEAD 'https://jitpack.io/org/kodein/di/kodein-di-framework-android-x/6.1.0/kodein-di-framework-android-x-6.1.0.pom'.
Received status code 401 from server: Unauthorized
> Could not resolve org.kodein.di:kodein-di-generic-jvm:6.1.0.
Required by:
project :app
> Could not resolve org.kodein.di:kodein-di-generic-jvm:6.1.0.
> Could not get resource 'https://jitpack.io/org/kodein/di/kodein-di-generic-jvm/6.1.0/kodein-di-generic-jvm-6.1.0.pom'.
> Could not HEAD 'https://jitpack.io/org/kodein/di/kodein-di-generic-jvm/6.1.0/kodein-di-generic-jvm-6.1.0.pom'.
Received status code 401 from server: Unauthorized
是否可以从另一台服务器获取工件?