Hello guys, I suddenly started getting this error ...
# general-advice
a
Hello guys, I suddenly started getting this error without any change in my project:
Copy code
sairaham@kotlin-dev-ThinkPad-P53:~/workspace/kotlin-dev-connect$ ./gradlew build -x test
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* Where:
Build file '/home/sairaham/workspace/kotlin-dev-connect/build.gradle.kts' line: 57

* What went wrong:
Class org.jetbrains.kotlin.cli.common.CompilerSystemProperties does not have member field 'org.jetbrains.kotlin.cli.common.CompilerSystemProperties COMPILE_INCREMENTAL_WITH_ARTIFACT_TRANSFORM'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.

BUILD FAILED in 6s
5 actionable tasks: 1 executed, 4 up-to-date
I have no clue what is wrong here. Google search also didn't help with it. Any help is greatly appreciated 🙏
c
You should probably use
assemble
instead
build -x test
, but that's not your problem
build
is an alias for
assemble check
and
check
is an alias for
test
and maybe other tasks like
lint
. So
build -x test
means "I want you to do
assemble
and
test
but not `test`" which is confusing (though it should work without issues)
🙏 1
gratitude thank you 1
Hard to say for certain with just that, but I'd guess on a version incompatibility (e.g. you're using a very old plugin with a very recent Kotlin version, or something like that)
a
Thanks Ivan. There was some weird mismatch between KotlinCompilerVersion and KotlinPluginWrapper as mentioned below. Not sure how all of sudden that happened. It worked by fixing that.
Copy code
KotlinCompilerVersion: 2.0.21
KotlinPluginWrapper Implementation Version: 1.9.25-release-852
185 Views