0

我想将 Kodein 添加到我的应用程序中,但似乎无法添加。

这是我得到的错误:

Could not find kodein-db-0.8.1-beta-samplessources.jar (org.kodein.db:kodein-db:0.8.1-beta).
Searched in the following locations:
    https://repo.maven.apache.org/maven2/org/kodein/db/kodein-db/0.8.1-beta/kodein-db-0.8.1-beta-samplessources.jar

我有这个

sourceSets {
   val commonMain by getting {
     dependencies {
            implementation("org.kodein.db:kodein-db:0.8.1-beta")
            implementation("org.kodein.db:kodein-db-serializer-kotlinx:0.8.1-beta")

在我的项目级别 build.gradle.kts 我有这个:

buildscript {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
    }
    val kotlinVersion = "1.4.32"
    dependencies {
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
        classpath("com.android.tools.build:gradle:4.2.1")
        classpath("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
    }
}

extra.set("kodeinVersion", "7.2.0")

allprojects {
    repositories {
        google()
        mavenCentral()
        maven(url = "https://jitpack.io")
        maven(url = "https://dl.bintray.com/kodein-framework/kodein-dev")
    }
}

我删除了最后一行,repositories但仍然失败并出现同样的错误。

4

0 回答 0