Hugo Costa
11/28/2024, 5:06 PMCaused by: org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).
at org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException.invalidTag(InvalidProtocolBufferException.java:89)
at org.jetbrains.kotlin.protobuf.CodedInputStream.readTag(CodedInputStream.java:158)
at org.jetbrains.kotlin.metadata.jvm.JvmModuleProtoBuf$Module.<init>(JvmModuleProtoBuf.java:223)
Seeing the most recent instance of this error here - https://youtrack.jetbrains.com/issue/KT-59139/1.9.0-BetaK2-Protocol-message-contained-an-invalid-tag-zero.-during-project-configurationmbonnin
11/28/2024, 5:26 PMHugo Costa
11/28/2024, 5:33 PMHugo Costa
11/28/2024, 5:35 PMmbonnin
11/28/2024, 5:41 PMmbonnin
11/28/2024, 5:41 PMmbonnin
11/28/2024, 5:42 PMHugo Costa
11/28/2024, 5:42 PMmbonnin
11/28/2024, 5:42 PMmbonnin
11/28/2024, 5:42 PMmbonnin
11/28/2024, 5:42 PMHugo Costa
11/28/2024, 5:44 PMmbonnin
11/28/2024, 5:44 PMHugo Costa
11/28/2024, 5:45 PMmbonnin
11/28/2024, 5:45 PMHugo Costa
11/28/2024, 5:47 PMjava.lang.NoSuchMethodError: 'org.gradle.internal.buildoption.BuildOption$Value org.gradle.api.internal.StartParameterInternal.getIsolatedProjects()'
at org.jetbrains.kotlin.gradle.plugin.internal.ProjectIsolationStartParameterAccessorG76$isProjectIsolationEnabled$2.invoke(ProjectIsolationStartParameterAccessorG76.kt:16)
at org.jetbrains.kotlin.gradle.plugin.internal.ProjectIsolationStartParameterAccessorG76$isProjectIsolationEnabled$2.invoke(ProjectIsolationStartParameterAccessorG76.kt:15)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
Interestingly, a different error\mbonnin
11/28/2024, 5:48 PMmbonnin
11/28/2024, 5:48 PMjava.lang.NoSuchMethodError: 'org.gradle.internal.buildoption.BuildOption$Value org.gradle.api.internal.StartParameterInternal.getIsolatedProjects()'Yup', that's a new one!
mbonnin
11/28/2024, 5:48 PMHugo Costa
11/28/2024, 5:48 PMHugo Costa
11/28/2024, 5:50 PMHugo Costa
11/28/2024, 5:59 PMmbonnin
11/28/2024, 6:05 PMmbonnin
11/28/2024, 6:05 PMbuild.gradle.kts
Hugo Costa
11/28/2024, 6:06 PMbuild.gradle
mbonnin
11/28/2024, 6:06 PMHugo Costa
11/28/2024, 6:06 PMmbonnin
11/28/2024, 6:07 PMbuild.gradle
files are not exposed to Kotlin compatibility issuesmbonnin
11/28/2024, 6:07 PMHugo Costa
11/28/2024, 6:09 PMbuild.gradle.kts
files.mbonnin
11/28/2024, 7:05 PMHugo Costa
11/29/2024, 7:56 AMKotlin 2.1.0 is fully compatible with Gradle 7.6.3 through 8.6. Gradle versions 8.7 to 8.10 are also supported, with only one exception. If you use the Kotlin Multiplatform Gradle plugin, you may see deprecation warnings in your multiplatform projects calling the `withJava()` function in the JVM target. We plan to fix this issue as soon as possible.Seems like the protobuf issue is related to something else
mbonnin
11/29/2024, 8:01 AMHugo Costa
11/29/2024, 8:03 AMHugo Costa
12/03/2024, 10:03 AMHugo Costa
12/03/2024, 10:04 AMmbonnin
12/03/2024, 10:06 AMHugo Costa
12/03/2024, 10:06 AMmain
variant should support it thoughmbonnin
12/03/2024, 10:06 AMmain
variant?Hugo Costa
12/03/2024, 10:07 AMHugo Costa
12/03/2024, 10:07 AMHugo Costa
12/03/2024, 10:07 AMmbonnin
12/03/2024, 10:08 AMHugo Costa
12/03/2024, 10:09 AMbuild.gradle
, it would workmbonnin
12/03/2024, 10:10 AMif we were to useNot even sure. You wouldn't get the "invalid tag" error (because this one is happening when compiling your build scripts). But you could get runtime errors from your Gradle build referencing inexisting APIs, it would workbuild.gradle
mbonnin
12/03/2024, 10:11 AMbuildSrc
or build-logic
, you must downgrade apiVersion and languageVersion there and make sure no buildscript dependency uses kotlin-stdlib:2.1+mbonnin
12/03/2024, 10:11 AMHugo Costa
12/03/2024, 10:11 AMbrazil.gradle
Hugo Costa
12/03/2024, 10:12 AMmbonnin
12/03/2024, 10:13 AMI have a couple of 7.6.4 projects that are indeed working, but they're all usingAssuming you meantbrazil.gradle
build.gradle
? That can work indeed. But the compile-time stdlib is different from the runtime stdlib. It's only working because none of the code references "newer" APIs