android - 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?
解决方案
在您的项目级别 build.gradle 文件中替换Jcenter()
为。MavenCentral()
例如:
repositories {
google()
mavenCentral() }
// Jcenter() 替换
推荐阅读
- csv - 如何将 Zimbra 数据解析为 CSV
- sql-server - 无需修改代码即可连接到 SQL Server 和 SQL Server Compact
- asp.net-core - 如何绑定到 Blazor 中的列表?
- python - 我应该如何从这个文本文件构建实体识别模型
- html - 更改 html 输入类型日期的占位符样式
- junit4 - 使用内存数据库中的实际存储库对 Spring 服务进行单元测试
- javascript - highchart - 提交时添加新数据
- psql - 如何从一个平面文件中读取值并在 PostgreSQL 文件中循环使用它们?
- sql - 应用程序性能的 SQL 平均时间计算
- sql-server - SSDT Schema Compare 总是添加对象,在解决方案中是“Build = None”