Issues installing through Gradle
已回答
Hey all!
I am trying to install Decompose through Gradle 8.0. I am doing it like this:
kotlin {
jvm {
jvmToolchain(11)
withJava()
}
sourceSets {
val jvmMain by getting {
dependencies {
implementation(compose.desktop.currentOs)
implementation("com.arkivanov.decompose:decompose:1.0.0")
implementation("com.arkivanov.decompose:extensions-compose-jetbrains:1.0.0")
}
}
val jvmTest by getting
}
}
When I build this, there are not errors.
However, when I try to import it into my Main.kt file, like this:
import com.arkivanov.decompose.ComponentContext
I get an
Unresolved reference: arkivanov
error.
I am clueless on how to solve this. So my question, how do I solve this?
请先登录再写评论。
This worked! Thank you so much!