问题描述
我有一个用eclipse开发的Kotlin和Spring Boot应用程序;我记得做的最后一个更改是在IntelliJ中更新Kotlin,现在当我尝试在Eclipse中运行应用程序时,控制台向我显示以下错误:
I have a Kotlin and Spring Boot application that I developed in eclipse; The last change I remember making is updating Kotlin in IntelliJ and now when I try to run my application in Eclipse the console shows me the following error:
No Location
EXCEPTION: java.lang.NoSuchMethodError: com.intellij.openapi.util.text.StringUtil.internEmptyString(Ljava/lang/String;)Ljava/lang/String;
at com.intellij.psi.impl.cache.TypeInfo.internFrequentType(TypeInfo.java:269)
at com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl.<init>(ClsJavaCodeReferenceElementImpl.java:49)
at com.intellij.psi.impl.compiled.ClsAnnotationImpl$1.compute(ClsAnnotationImpl.java:47)
at com.intellij.psi.impl.compiled.ClsAnnotationImpl$1.compute(ClsAnnotationImpl.java:40)
at com.intellij.openapi.util.AtomicNotNullLazyValue.getValue(AtomicNotNullLazyValue.java:37)
at com.intellij.psi.impl.compiled.ClsAnnotationImpl.getNameReferenceElement(ClsAnnotationImpl.java:106)
at org.jetbrains.kotlin.load.java.structure.impl.JavaAnnotationImpl.resolvePsi(JavaAnnotationImpl.java:84)
at org.jetbrains.kotlin.load.java.structure.impl.JavaAnnotationImpl.getClassId(JavaAnnotationImpl.java:51)
at org.jetbrains.kotlin.load.java.structure.JavaElementsKt$buildLazyValueForMap$1.invoke(javaElements.kt:65)
at org.jetbrains.kotlin.load.java.structure.JavaElementsKt$buildLazyValueForMap$1.invoke(javaElements.kt)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at org.jetbrains.kotlin.load.java.structure.impl.JavaPackageImpl.getAnnotationsByFqName(JavaPackageImpl.kt)
at org.jetbrains.kotlin.load.java.structure.MapBasedJavaAnnotationOwner$DefaultImpls.findAnnotation(javaElements.kt:59)
at org.jetbrains.kotlin.load.java.structure.impl.JavaPackageImpl.findAnnotation(JavaPackageImpl.kt:25)
at org.jetbrains.kotlin.load.java.components.JavaAnnotationMapper.findMappedJavaAnnotation(JavaAnnotationMapper.kt:72)
at org.jetbrains.kotlin.load.java.lazy.LazyJavaAnnotations.iterator(LazyJavaAnnotations.kt:40)
at org.jetbrains.kotlin.load.java.lazy.ContextKt.computeNewDefaultTypeQualifiers(context.kt:245)
at org.jetbrains.kotlin.load.java.lazy.ContextKt$childForClassOrPackage$1.invoke(context.kt:223)
at org.jetbrains.kotlin.load.java.lazy.ContextKt$childForClassOrPackage$1.invoke(context.kt)
at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81)
它以以下消息结尾:Error: no se ha encontrado o cargado la clase principal mx.job.project.config.AplicacionConfigKt
And it ends with the message:Error: no se ha encontrado o cargado la clase principal mx.job.project.config.AplicacionConfigKt
谢谢!
推荐答案
我已经安装了 Eclipse(2020-03)和 Kotlin插件(0.8.20),并且执行项目时收到错误消息.
I had installed Eclipse(2020-03) and Kotlin plugin (0.8.20), and I received a error when I execute my project.
我解决了它.当我卸载Kotlin插件0.8.20并安装了0.8.19时,我相信这是eclipse的kotlin插件中的错误.
I solved it When I uninstalled the Kotlin plugin 0.8.20 and installed 0.8.19, I believe it is a bug in kotlin plugin for eclipse.
https://dl.bintray.com/jetbrains/kotlin/eclipse-插件/
这篇关于在Intellij中更新Kotlin后在Eclipse中运行应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!