Hi, my gradle build is successful, but as I am run...
# community-support
p
Hi, my gradle build is successful, but as I am running my application, it shows error: Execution failed for task ':com.example.project3.Project3 Application.main()'.
Process 'command '/Library/ Java/JavaVirtual Machines/ jdk-17.jdk/Contents/Home/bin/ java" finished with non-zero exit value 1
v
Now is it successful or not? As you show a failing task, obviously it is not. Because "running your application" is usually not involved with Gradle. But from the naming of the Task I guess you try to run from IDE. This is not a Gradle topic then though. You use Gradle to run your code, and your code does not exit cleanly, which makes the task fail. You need to check where your code does not behave as you intend, for example by using a debugger.