After upgrading to Jetpack Compose 1.0.0-alpha12 with Kotlin 1.4.30, also with Activity 1.3.0-alpha02
fix for setContent
, but still got an error
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 2 files found with path 'META-INF/AL2.0' from inputs:
Had to use the workaround to make it built
packagingOptions {
exclude 'META-INF/AL2.0'
exclude 'META-INF/LGPL2.1'
}
And also have the warning
Flag is not supported by this version of the compiler: -Xallow-jvm-ir-dependencies
No matter keeping freeCompilerArgs += ["-Xallow-jvm-ir-dependencies"]
under kotlinOptions
or not