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
Setting gradle version to 3.3 corrected this issue.
It's a known issue in IntelliJ IDEA that is specific to Gradle 3.4 and later versions:
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.