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