martmists
04/12/2022, 9:50 PMLandry Norris
04/12/2022, 9:53 PMmartmists
04/12/2022, 9:55 PMorg.gradle.api.UncheckedIOException: java.io.InvalidClassException: failed to read class descriptor
Landry Norris
04/12/2022, 9:57 PMmartmists
04/12/2022, 9:57 PMsourceSets {
val commonMain by getting {
dependencies {
api(project(":innertube"))
api(compose.runtime)
api(compose.foundation)
api(compose.material)
api(compose.ui)
api(compose.animation)
api(compose.animationGraphics)
api("com.arkivanov.decompose:decompose:0.6.0")
api("com.arkivanov.decompose:extensions-compose-jetbrains:0.6.0")
}
}
Here's my gradle config. Gradle 7.4, OpenJDK 17Landry Norris
04/12/2022, 9:58 PMmartmists
04/12/2022, 10:04 PMLandry Norris
04/12/2022, 10:05 PMmartmists
04/12/2022, 10:05 PMimport org.jetbrains.compose.compose
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("com.android.library")
id("kotlin-parcelize")
}
group = "com.mewsic"
version = "1.0"
kotlin {
android()
jvm("desktop") {
compilations.all {
kotlinOptions.jvmTarget = "11"
}
}
sourceSets {
val commonMain by getting {
dependencies {
api(project(":innertube"))
api(compose.runtime)
api(compose.foundation)
api(compose.material)
api(compose.ui)
api(compose.animation)
api(compose.animationGraphics)
api("com.arkivanov.decompose:decompose:0.5.2")
api("com.arkivanov.decompose:extensions-compose-jetbrains:0.5.2")
}
}
val androidMain by getting {
dependencies {
api("androidx.appcompat:appcompat:1.4.1")
api("androidx.core:core-ktx:1.7.0")
}
}
val desktopMain by getting {
dependencies {
api(compose.preview)
}
}
}
}
android {
compileSdk = 31
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = 24
targetSdk = 31
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
Landry Norris
04/12/2022, 10:05 PMmartmists
04/12/2022, 10:06 PMLandry Norris
04/12/2022, 10:07 PMmartmists
04/12/2022, 10:08 PMLandry Norris
04/12/2022, 10:09 PMArkadii Ivanov
04/12/2022, 10:10 PMLandry Norris
04/12/2022, 10:11 PMmartmists
04/12/2022, 10:11 PMLandry Norris
04/12/2022, 10:12 PMmartmists
04/12/2022, 10:12 PMCould not determine the dependencies of task ':commonizeNativeDistribution'.
> Could not resolve all files for configuration ':kotlinKlibCommonizerClasspath'.
> Cannot resolve external dependency org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:1.6.10 because no repositories are defined.
Required by:
project :
Arkadii Ivanov
04/12/2022, 10:15 PMmartmists
04/12/2022, 10:19 PMI think you can't add the ios targetDoesn't Jetbrains Compose support ios too?
Landry Norris
04/12/2022, 10:21 PMArkadii Ivanov
04/12/2022, 10:22 PMmartmists
04/12/2022, 10:37 PMArkadii Ivanov
04/12/2022, 10:41 PM