https://kotlinlang.org logo
b

BenjO

02/11/2021, 10:53 AM
I'm upgrading to compose
alpha12
. Last warning I have is
Flag is not supported by this version of the compiler: -Xallow-jvm-ir-dependencies
. Does anyone know why ? 🙏
I use Kotlin plugin version : 203-1.4.30-RC-AS6682.9
👍 1
I'm using
kotlinOptions.allWarningsAsErrors = true
in my project, so this warning fails the build right now 😕 warning shows up even after I removed the entry from the freeCompilerArgs
j

jim

02/11/2021, 1:14 PM
I believe this is added by AGP, filed a bug: https://issuetracker.google.com/issues/179990559
✔️ 1
🙏 1
k

Klaas Kabini

02/11/2021, 5:11 PM
I am also experience this error during build
a

allan.conda

02/12/2021, 9:19 AM
link above is for Google only, btw ^
b

BenjO

02/12/2021, 9:37 AM
yes you're right. @jim , is AGP bug tracker different than https://issuetracker.google.com ?
j

jim

02/12/2021, 9:41 AM
ugg, no, just all our internal URLs are different from the public URLs for no apparent reason, and sometimes we forget to change them before pasting into slack. If you ever see one of our internal URLs, you can just grab the bug number off the end of the URL and create your own issuetracker compatible URL. So in this case, that would be: https://issuetracker.google.com/issues/179990559 I'll go ahead and edit my previous comment to make the URL clickable for you all.
🙏 2
b

BenjO

02/12/2021, 9:44 AM
I got an access denied 🤔
😭 1
a

allan.conda

02/12/2021, 9:45 AM
Yeah some compose categories are not accessible outside also. Found out before when I tried to file a bug.
😭 1
j

jim

02/12/2021, 9:52 AM
Well, the TLDR is that the fix has been merged into master and is currently scheduled to go out as part of 2020.3.1 Canary 8 [20020.3.1.8]/AGP 7.0-alpha08.
👍 1
🙏 2
b

BenjO

02/12/2021, 9:53 AM
that's good to hear !
@jim I just ugraded to 2020.3.1 / AGP alpha08 and I still got the same warning
😞 1
j

jim

02/24/2021, 7:03 PM
@BenjO And you've double-checked that you're not adding the flag (-Xallow-jvm-ir-dependencies) manually in your build.gradle files?
b

BenjO

02/24/2021, 7:18 PM
well, I set this flag because of compose (https://developer.android.com/jetpack/androidx/releases/compose-foundation#declaring_dependencies) Because I use it in conjunction with
kotlinOptions.allWarningsAsErrors = true
it breaks the build. After invalidating the cache and a restart, I still have two warnings but build is working
j

jim

02/24/2021, 7:19 PM
Ah, those docs just need to be updated, you shouldn't need to set that flag anymore
b

BenjO

02/24/2021, 7:22 PM
Ah! Meanwhile I managed to make them disappear 🤔 I was using
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all
instead of `tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach``
Anyway 🙏 @jim
Nice, docs are up-to-date now !
j

jim

02/25/2021, 10:51 AM
😇
They're up-to-date because you identified and raised the issue here. Thanks for bringing it up.
🙏 1
b

BenjO

03/02/2021, 9:06 AM
It looks like the kotlinCompilerVersion has been deprecated. It is still visible in the official docs. If not mandatory anymore, it may be easier to remove the line. It's less setup for the devs.
Copy code
composeOptions {
        kotlinCompilerVersion "1.4.30"
}
k

Klaas Kabini

03/02/2021, 9:07 AM
The docs need to be updated.
2 Views