0
我在gradle产出和科特林新摇篮不详细“:compileKotlin”
当我建立使用gradle build
它只是表明
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more details
我如何获得语法错误文件,该文件行语法错误,如使用kotlinc
?
PS:使用vscode,所以我需要它
编辑
对不起,我错过了错误消息,因为差和kotlinc
之间gradle
的gradle:
PS C:\PlayGround2> gradle build
e: C:\PlayGround2\src\main\kotlin\Main.kt: (26, 1): Expecting a top level declaration
> Task :compileKotlin
Using kotlin incremental compilation
...
kotlinc:
PS C:\PlayGround2\src\main\kotlin> kotlinc .\Main.kt
Main.kt:26:1: error: expecting a top level declaration
} <--- this line not shown in kotlinc