NoClassDefFoundError after IntelliJ IDEA upgrade

前端 未结 2 711
Happy的楠姐
Happy的楠姐 2020-11-27 07:37

Recently I created a new project using IntelliJ IDEA and Gradle for dependency management. After resolving all the dependencies needed by the project and running it I get th

相关标签:
2条回答
  • 2020-11-27 08:09

    Setting gradle version to 3.3 corrected this issue.

    0 讨论(0)
  • 2020-11-27 08:18

    It's a known issue in IntelliJ IDEA that is specific to Gradle 3.4 and later versions:

    • IDEA-167412 Gradle 3.4-rc-1 changes compile dependencies to provided
    • original bug report in the Gradle project with more details
    • comment from the responsible developer regarding "Create Module per source set" option and how Gradle integration works in IntelliJ IDEA

    It's already fixed in IntelliJ IDEA 2017.1 and 2016.3.6.

    You can also use Gradle 3.3 or older as a workaround if you can't or don't want to update IntelliJ IDEA.

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