【发布时间】:2021-06-08 12:25:40
【问题描述】:
Android 专家,
请从您的构建脚本中删除对 `jcenter()` Maven 存储库的使用,并将您的构建迁移到其他 Maven 存储库。
在今天的实践中,我应该将下面的“jcenter”替换为什么?
不幸的是,这方面的所有信息似乎在过去一两年都发生了巨大变化?因此请教这里的专家。
只有在重要的情况下,应用才 24 岁以上。
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.0-beta06'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
【问题讨论】:
标签: maven android-studio