Open EpicDima opened 1 month ago
Just in case do you have this set to false: https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
And what Kotlin version are you using? https://kotlinlang.org/docs/gradle.html https://plugins.gradle.org/plugin/org.jetbrains.kotlin.jvm
Just in case do you have this set to false: https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
Yes, it is set to false.
And what Kotlin version are you using? https://kotlinlang.org/docs/gradle.html https://plugins.gradle.org/plugin/org.jetbrains.kotlin.jvm
Kotlin 2.0.20
In that case as the last idea I would try Invalidate Caches / Restart
In that case as the last idea I would try
Invalidate Caches / Restart
In that does not help, and you have nothing else to try, I would remove ~/.gradle
and ~/.m2
maybe also .gradle
in your project & sub-projects dirs also all build
dirs or just run clean. I am suggesting this because I have never seen this error before, it should work.
I tried these methods, but unfortunately, it's still the same error 😔
Maybe check what version of kotlinx.serialization is included by XMLUtil (gradle dependencies
). As you can see here, kotlinx.serialization is bundled with intellij: https://www.jetbrains.com/legal/third-party-software/?product=IIC and maybe the version is different than expected by XMLUtil (https://github.com/pdvrieze/xmlutil/releases)
If XMLUtil expects a newer version, you can try to downgrade XMLUtil, if you try to upgrade kotlinx.serialization then things in intellij may break, usually it's best to use the bundled things.
If run with --debug
, the build will fail even earlier with another error, but what is similar to the first one is that it is also java.lang.NoSuchMethodError
.
We checked on other devices, the same thing happens there, that is, it does not depend on a specific device, probably the problem is probably in the project or in the plugin.
Debug logging creates the same error even in my project.
What happened?
After migrating to a new plugin version 2.0.0 and higher, a gradle project synchronization error occurs, because of this it is impossible to do anything with the IDE plugin.
Relevant log output or stack trace
Steps to reproduce
I don't know what the problem is and how to reproduce it separately, just the usual setup of the IDE plugin inside the general Android project.
Gradle IntelliJ Plugin version
2.0.0-2.1.0
Gradle version
8.9-8.10.2
Operating System
macOS
Link to build, i.e. failing GitHub Action job
No response