John O'Reilly
12/10/2022, 1:52 PMe: Source file or directory not found: plugin:androidx.compose.compiler.plugins.kotlin:sourceInformation=true
e: Source file or directory not found: plugin:androidx.compose.compiler.plugins.kotlin:liveLiterals=true
For example using with Kotlin 1.8.0-RC
const val compose = "1.4.0-alpha03"
const val composeCompiler = "1.4.0-dev-k1.8.0-RC-4c1865595ed"
carbaj0
12/10/2022, 5:44 PMcarbaj0
12/10/2022, 5:45 PMplugins {
id 'com.android.application' version '8.0.0-alpha09' apply false
id 'com.android.library' version '8.0.0-alpha09' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0-RC' apply false
}
John O'Reilly
12/10/2022, 6:26 PMJohn O'Reilly
12/10/2022, 7:26 PMkotlin.mpp.androidSourceSetLayoutVersion=2
in project herecarbaj0
12/10/2022, 8:34 PMConrad Kramer
12/10/2022, 10:21 PMkotlinOptions.freeCompilerArgs were changed on task 🤖compileDebugKotlin execution phase: -opt-in=kotlin.RequiresOptIn, -Xplugin=/Users/conradev/.gradle/caches/modules-2/files-2.1/androidx.compose.compiler/compiler/1.4.0-dev-
k1.8.0-RC-4c1865595ed/70f3ba3161f2b13d7a24fcbd31d77cd103566985/compiler-1.4.0-dev-k1.8.0-RC-4c1865595ed.jar, -P, pluginandroidx.compose.plugins.ideaenabled=true, -Xallow-unstable-dependencies, -P, plugin:androidx.compose.compiler.
plugins.kotlin:sourceInformation=true, -P, pluginandroidx.compose.compiler.plugins.kotlinliveLiterals=true
This behaviour is deprecated and become an error in future releases!I just hit this as well – it looks like AGP 7.3.1 passes unsupported arguments to Kotlin 1.8.0, causing the error. It works in AGP
7.4.0-rc01
if you don’t want to jump to AGP 8.0 and the Canary build of Android Studio