文档 · AppsKitSDK (AKS) — Android 集成指南
3. settings.gradle
添加 JitPack 仓库,以便 Gradle 解析 AKS 的依赖坐标。在新版 Android Studio 项目中,仓库配置位于 settings.gradle.kts 中:
kotlin
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
}如果你的项目仍在项目级别声明仓库(旧版模板,在根目录的 build.gradle.kts 中使用 allprojects { repositories { ... } }),则在该位置添加 JitPack 仓库:
kotlin
allprojects {
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
}