Status Update
Comments
kk...@gmail.com <kk...@gmail.com> #2
co...@gmail.com <co...@gmail.com> #3
da...@gmail.com <da...@gmail.com> #4
eu...@gmail.com <eu...@gmail.com> #5
fa...@gmail.com <fa...@gmail.com> #6
ve...@gmail.com <ve...@gmail.com> #7
za...@gmail.com <za...@gmail.com> #8
ga...@google.com <ga...@google.com>
ga...@google.com <ga...@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.
pe...@gmail.com <pe...@gmail.com> #10
ga...@google.com <ga...@google.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
ad...@trenit.app <ad...@trenit.app> #12
ga...@google.com <ga...@google.com> #13
It should be out next week in case we do not find any major blockers.
ad...@trenit.app <ad...@trenit.app> #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")
}
da...@gmail.com <da...@gmail.com> #16
many thanks
et...@gmail.com <et...@gmail.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.
Description
Gradle version: 6.6-rc
Android Plugin Version: 4.2.0-alpha08
Module Compile Sdk Version: 29
Module Build Tools Version: 29.0.3
Repro steps
Error
Sync fails immediately with: