NoClassDefFoundError after IntelliJ IDEA upgrade

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.

Leave a Comment