Status Update
Comments
pa...@nearside.com <pa...@nearside.com> #2
yb...@google.com <yb...@google.com> #3
pa...@nearside.com <pa...@nearside.com> #4
du...@gmail.com <du...@gmail.com> #5
yb...@google.com <yb...@google.com> #6
xa...@google.com <xa...@google.com> #7
pa...@nearside.com <pa...@nearside.com> #8
xa...@google.com <xa...@google.com> #9
Root cause is that Gradle will force Kotlin kotlin-stdlib-common to 1.3.72 when .kts
is used. As AGP recently started compiling against 1.4, and we ship bytecode that contains references to kotlin/KotlinNothingValueException
causing the issue. We need to change AGP to compile against 1.3.72.
This does not fail with Groovy build scripts as both 1.4 and 1.3.72 kotlin-stdlib-common end up in the classpath.
yb...@google.com <yb...@google.com> #10
mv...@gmail.com <mv...@gmail.com> #11
This isseu will get fixed in AGP 4.2.0-alpha09, as it got fixed by
However, there is still an issue of AGP compiling against 1.4 and running against 1.3.72 which must be fixed. Fixing that is tracked in
ga...@google.com <ga...@google.com> #12
ga...@google.com <ga...@google.com> #13
It should be out next week in case we do not find any major blockers.
ha...@gmail.com <ha...@gmail.com> #14
Is it to convert the build gradle file to Groovy?
ga...@google.com <ga...@google.com> #15
Once workaround is to add Kotlin 1.4.0 stdlib to buildSrc e.g update buildSrc/build.gradle.kts
with
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.4.0")
}
pa...@nearside.com <pa...@nearside.com> #16
many thanks
ga...@google.com <ga...@google.com> #17
For the above comment poster: In my project, I only had to change the top-level build files to .gradle
, and the subprojects .kts
build files I left alone. It fixed the issue for me.
an...@google.com <an...@google.com> #18
ga...@google.com <ga...@google.com> #19
This is fixed by ag/I763a83ed63486eebb2dc94f3b671bdf4f60b2f21, and will be shipped in AGP 4.2.0-alpha10.
an...@google.com <an...@google.com> #20
The following changes were cherrypicked through
Release Track:
Changes: ag/12514712, ag/12515258
ub...@gmail.com <ub...@gmail.com> #21
je...@gmail.com <je...@gmail.com> #22
do we have any temp way to solve it or where can we download a8 version :)
Description
I have 2 modules that use ViewBinding, and in one of them, I get this error:
I'm on AS/AGP 4.2a9, Gradle 6.6.1, MacOS 10.15.5.
Stacktrace, caused by running
:features:dashboard:assembleDebug --stacktrace
: