Error:BUG! exception in phase 'class generation' in source unit '_BuildScript_' unsupported Target MODULE

后端 未结 3 2212
鱼传尺愫
鱼传尺愫 2021-02-05 02:49

I\'m trying to create a new Java 9 project using gradle but right after project creation I received error from gradle:

Error:BU         


        
相关标签:
3条回答
  • 2021-02-05 03:15

    I have solved it by downgrading Gradle JVM to 8. It is not perfect but keeps you going while jdk9 and gradle and intellij stabilises.

    Intellij View

    0 讨论(0)
  • 2021-02-05 03:19

    Seems fixed in 2017.3

    See IntelliJ IDEA 2017.3 173.2941.3 Release Notes: https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+2017.3+173.2941.3+Release+Notes

    See issue: https://youtrack.jetbrains.com/issue/IDEA-171520

    0 讨论(0)
  • 2021-02-05 03:32

    Setting the Gradle home to local Gradle distribution solved the issue in my case.

    • Java version: 9+181
    • Gradle version: 4.1
    • Intellij version: 2017.2.2

    if we set to use default Gradle wrapper, IntelliJ downloads an earlier version of Gradle. I think it is the reason for failure.

    0 讨论(0)
提交回复
热议问题