import org.jetbrains.yaml.YAMLFileTypeLoader failes
Answered
I am new to gradle and need some help
I am trying to build a custom plugin , if I use intelliJ version "2017.1.6" it works fine , but it doesn work with 2021.1 (version) . When using 2017.1.6 I use Java version 1.8 while with 2021.1 I tried using Java 11 and Java 16 ...but both gives the same error
(error: cannot find symbol org.jetbrains.yaml.YAMLFileTypeLoader )
I am attaching snippets from build.gradle
plugins {
id 'org.jetbrains.intellij' version '0.7.2'
}
intellij {
version '2021.1.1'
plugins =['yaml']
downloadSources = false
updateSinceUntilBuild = false
}
sourceCompatibility = 11
targetCompatibility = 11
Plugins .xml already has this dependency
<depends>org.jetbrains.plugins.yaml</depends>
Please sign in to leave a comment.
So the problem was solved by deleting the
.gradlefolder. Unfortunately none of the answers that I referred to described which.gradlefolder I was supposed to delete.What I did was deleted the
.gradlefolder inside the project structure. What you have to do is delete the.gradlefolder located inWindows:
MacOS:
The class org.jetbrains.yaml.YAMLFileTypeLoader simply was removed in some version after 2017.1.6. Nothing related to Gradle.
Thanks for input ...is there any other alternative class that can be used
Please show your previous usage, what do you need it for?
Thanks Yann , I was able to resolve myself ...thanks for your help