其元数据的二进制版本为 1.0.1,预期版本为 1.1.0
The binary version of its metadata is 1.0.1, expected version is 1.1.0
在 intellij idea 16 EAP 144.3357.4 中,我有一个纯 Kotlin cmd 项目当前拒绝 运行 并出现此错误:
The binary version of its metadata is 1.0.1, expected version is 1.1.0
命令行上的项目 运行s - 我使缓存无效并重新启动了 Idea - 没有任何帮助。有人遇到同样的问题并找到了解决方法吗?
问题似乎是您项目中使用的kotlin库不匹配,与插件版本不兼容。
检查 Kotlin 插件版本,您很可能会看到类似于以下内容的内容:
Version: 1.0.0-rc-1007-IJ143-11
然后通过查看 META-INF/build.txt
或 META-INF/MANIFEST.MF
检查 Kotlin 库的版本,它很可能是其他版本,例如 1.0.0-beta-4589
.
要解决此问题,请将 Kotlin 库更新到版本 1.0.0-rc-1007
,可以在此 Maven 存储库中找到:https://dl.bintray.com/kotlin/kotlin-eap.
Kotlin 编译器用 @kotlin.Metadata
标记每个 .class
以表明:
The version of the bytecode interface (naming conventions, signatures) of the class file annotated with this annotation.
这就是编译器检测到不兼容的方式。
在 intellij idea 16 EAP 144.3357.4 中,我有一个纯 Kotlin cmd 项目当前拒绝 运行 并出现此错误:
The binary version of its metadata is 1.0.1, expected version is 1.1.0
命令行上的项目 运行s - 我使缓存无效并重新启动了 Idea - 没有任何帮助。有人遇到同样的问题并找到了解决方法吗?
问题似乎是您项目中使用的kotlin库不匹配,与插件版本不兼容。
检查 Kotlin 插件版本,您很可能会看到类似于以下内容的内容:
Version: 1.0.0-rc-1007-IJ143-11
然后通过查看 META-INF/build.txt
或 META-INF/MANIFEST.MF
检查 Kotlin 库的版本,它很可能是其他版本,例如 1.0.0-beta-4589
.
要解决此问题,请将 Kotlin 库更新到版本 1.0.0-rc-1007
,可以在此 Maven 存储库中找到:https://dl.bintray.com/kotlin/kotlin-eap.
Kotlin 编译器用 @kotlin.Metadata
标记每个 .class
以表明:
The version of the bytecode interface (naming conventions, signatures) of the class file annotated with this annotation.
这就是编译器检测到不兼容的方式。