然而,我的build.gradle看起来如下,我不知道如何正确更改依赖项的来源——没有“buildscripts”部分:
你可能已经有了
mavenCentral()
已配置。在较新的项目中,默认情况是在
settings.gradle
或
settings.gradle.kts
在一个
dependencyResolutionManagement()
lambda:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
你的问题在于你的版本。替换:
implementation ("com.halfhp.fig:figlib:1.0.7")
与:
implementation ("com.halfhp.fig:figlib:1.0.11")
1.0.11
是
the only version reported to be in Maven Central
.
另外,请注意
this project has not been updated in 3 years
.