Intellij Idea 13 UI Designer and automatic Gradle building

后端 未结 4 895
耶瑟儿~
耶瑟儿~ 2020-11-30 10:40

I\'ve used the Intellij UI Designer to create forms for a project. Everything works fine when I\'m building with idea as it handles compiling the forms for me, but as we rec

4条回答
  •  春和景丽
    2020-11-30 11:16

    IntelliJ IDEA 2019.1

    I found this issue still exists. It's at least somehow documented now:

    If your build actions are delegated to Gradle, GUI Designer will not generate Java source code.

    So by disabling the according setting

    Build, Execution, Deployment | Build Tools | Gradle | Runner | Delegate IDE build/run actions to gradle

    I was able to build and run the project successfully. Note that I didn't need any other settings or additional libraries from the answers above. I let Generate GUI into be set to Binary class files.

提交回复
热议问题