Daniel Rampelt
06/09/2021, 8:35 PM1.0.0-beta08
into an existing application with Kotlin 1.5.10
and AGP 7.1.0-alpha02
. I'm getting the following error and I'm not sure how to further debug it. More details in 🧵
java.lang.NoSuchMethodError: No static method setContent$default(...)
Daniel Rampelt
06/09/2021, 8:36 PMkotlinCompilerExtensionVersion
but I have that. I have all of the following:
buildFeatures {
compose true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += "-Xallow-jvm-ir-dependencies"
// Gives "w: Flag is not supported by this version of the compiler: -Xallow-jvm-ir-dependencies"
}
composeOptions {
kotlinCompilerVersion '1.5.10'
kotlinCompilerExtensionVersion '1.0.0-beta08'
}
Daniel Rampelt
06/09/2021, 8:36 PMkotlinOptions.useIR = true
but it says it's deprecated and has no effect in 1.5.10
I'm using the latest activity-compose
library, 1.3.0-beta01
Adam Powell
06/09/2021, 8:37 PMDaniel Rampelt
06/09/2021, 8:37 PMjava.lang.NoSuchMethodError: No static method setContent$default(Landroidx/activity/ComponentActivity;Landroidx/compose/runtime/CompositionContext;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)V in class Landroidx/activity/compose/ComponentActivityKt; or its super classes (declaration of 'androidx.activity.compose.ComponentActivityKt' appears in /data/app/~~0N8EjwXJ4bUjj7UeohjOLQ==/com.chalk.planboard.dev-SNl_FACaLy7V4N-4Febf3g==/base.apk)
at com.chalk.planboard.ui.attachments.AttachmentsActivity.onCreate(AttachmentsActivity.kt:77)
Colton Idle
06/09/2021, 8:40 PMAdam Powell
06/09/2021, 8:41 PMDaniel Rampelt
06/09/2021, 8:56 PMAdam Powell
06/09/2021, 9:22 PMColton Idle
06/09/2021, 9:24 PMDaniel Rampelt
06/09/2021, 11:23 PMDaniel Rampelt
06/09/2021, 11:23 PMColton Idle
06/09/2021, 11:36 PMColton Idle
06/09/2021, 11:37 PMDaniel Rampelt
06/10/2021, 12:46 AMColton Idle
06/10/2021, 1:16 AMDaniel Rampelt
06/10/2021, 1:17 AMColton Idle
06/10/2021, 1:31 PMjim
06/10/2021, 5:42 PMjim
06/10/2021, 5:59 PMColton Idle
06/10/2021, 6:09 PMColton Idle
06/10/2021, 6:10 PM