TL; DR
Access to Kodein core packages at JCenter are unauthorized.
Details
We are using Kodein for dependency injection, but suddenly JCenter server is returning Unauthorized
when Gradle tries to download any org.kodein.*
artifact.
* 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
It also has being reported as an issue by Kodein-DI community.
Is it possible to obtain the artifacts from another server?