gpt4 book ai didi

eclipse - 在Intellij中更新Kotlin后在Eclipse中运行应用程序时出错

转载 作者:行者123 更新时间:2023-12-02 13:03:13 25 4
gpt4 key购买 nike

我有一个用eclipse开发的Kotlin和Spring Boot应用程序。我记得做的最后一个更改是在IntelliJ中更新Kotlin,现在当我尝试在Eclipse中运行应用程序时,控制台向我显示以下错误:

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

谢谢!!

最佳答案

我已经安装了 Eclipse(2020-03) Kotlin插件(0.8.20),执行项目时收到错误消息。

我解决了当我卸载Kotlin插件0.8.20并安装0.8.19时,我相信这是eclipse的kotlin插件中的错误。

https://dl.bintray.com/jetbrains/kotlin/eclipse-plugin/

关于eclipse - 在Intellij中更新Kotlin后在Eclipse中运行应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60743746/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com