I'm upgrading to compose `alpha12` . Last warning...
# compose
b
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
I believe this is added by AGP, filed a bug: https://issuetracker.google.com/issues/179990559
βœ”οΈ 1
πŸ™ 1
k
I am also experience this error during build
a
link above is for Google only, btw ^
b
yes you're right. @jim , is AGP bug tracker different than https://issuetracker.google.com ?
j
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
I got an access denied πŸ€”
😭 1
a
Yeah some compose categories are not accessible outside also. Found out before when I tried to file a bug.
😭 1
j
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
that's good to hear !
@jim I just ugraded to 2020.3.1 / AGP alpha08 and I still got the same warning
😞 1
j
@BenjO And you've double-checked that you're not adding the flag (-Xallow-jvm-ir-dependencies) manually in your build.gradle files?
b
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
Ah, those docs just need to be updated, you shouldn't need to set that flag anymore
b
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
πŸ˜‡
They're up-to-date because you identified and raised the issue here. Thanks for bringing it up.
πŸ™ 1
b
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
The docs need to be updated.