问题描述
在IntelliJ中,您可以这样设置目标Java版本:
In IntelliJ you can set the target Java version like this:
不幸的是,我没有看到可以像Kotlin一样做的地方.这使我无法使用Quasar-Kotlin.即使安装了1.0 Beta,我也想切换到M14.我该如何找回?
Unfortunately I don't see a place where I can do the same for Kotlin. This makes it not possible for me to use Quasar-Kotlin. I want to switch to M14 even though I have 1.0 beta installed. How can I change back?
将 build.gradle
文件更改回M14之后,我在项目中遇到编译错误.
After changing the build.gradle
file back to M14 I am greeted with compilation errors in my project.
我的 build.gradle
: https://gist.github.com/Jire/5b517fd767ad498bc18f
推荐答案
您目前无法执行此操作.无论您的build.gradle文件说什么,在IntelliJ IDEA中构建项目始终使用与插件捆绑在一起的Kotlin编译器版本.如果需要降级到M14,则需要安装插件的M14版本.
You can't do this at the moment. Building your project in IntelliJ IDEA always uses the version of the Kotlin compiler bundled with the plugin, regardless of what your build.gradle file says. If you need to downgrade to M14, you need to install the M14 version of the plugin.
这篇关于如何在IntelliJ上更改Kotlin编译器版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!