Skip to content
Advertisement

Gradle project error – java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication

This is my main application code:

JavaScript

I’m using gradle to build the project. Even though SpringApplication file is properly imported I’m getting the following error:

JavaScript

I’m getting following gradle message when I hover over SpringApplication

JavaScript

Any help would be much appreciated. Thanks in advance!

Advertisement

Answer

The error was because of an issue with gradle 3.4 I’ve changed my gradle distribution to 3.2 and everything is working fine now.

Please refer this for more information: https://github.com/gradle/gradle/issues/1335

Hope this solves your problem.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement