after I added this to my `buildSrc/build.gradle`: ...
# compose
a
after I added this to my `buildSrc/build.gradle`:
Copy code
dependencies {
    implementation "com.android.tools.build:gradle:7.3.1"
}
I'm getting an error when trying to build a module that uses compose:
Copy code
> Task :app:compileDebugKotlin FAILED
e: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
...
(more in snippet)
I have no idea why should the
implementation
dependency of
buildSrc
affect
app
module in such a way 😮 any ideas?
In my root
build.gradle
I also have:
Copy code
buildscript {
    // ...
    dependencies {
        // ...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
and in
buildSrc/build.gradle
I have:
Copy code
plugins {
    id 'org.jetbrains.kotlin.jvm' version '1.7.10'
}
and changing
1.7.10
to
1.7.20
seems to have helped I'm still not sure why it was ok before adding the AGP dependency and failed after
or actually this wasn't all, it seems I had also to add:
Copy code
dependencies {
    implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
}
to
buildSrc/build.gradle
for it to work