Has anyone been able to use dev version of Compose...
# compose
j
Has anyone been able to use dev version of Compose Compiler that works with Kotlin 1.8.x (https://androidx.dev/storage/compose-compiler/repository)? Getting following here. Tried in new compose project and getting same error. Tried with latest Compose stable and alpha in case that affected things but no difference.
Copy code
e: 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
Copy code
const val compose = "1.4.0-alpha03"
    const val composeCompiler = "1.4.0-dev-k1.8.0-RC-4c1865595ed"
👀 1
c
I had the same error in an existing project. I created a new one, and it no longer gives me the error... (Android Studio Flamingo)
Copy code
plugins {
    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
}
j
Thanks, might be issue with plugin version I'm using....will try that
ok, it's working now, thanks! Turned out it was, along with plugin version, also related to use of
kotlin.mpp.androidSourceSetLayoutVersion=2
in project here
c
sometimes we waste more time making things work than programming, is the price to pay for being early adopters 😆
c
kotlinOptions.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
152 Views