//This probably means you need to change to the src directory
//and call
java com.company.Main
//well, that means that ur main method doesn't exist, or your main method is out of your class.
//so, keep focusing in bracing part.
//main method should be like this:
Class main{
public static void main(String[] args) {
//ur code
}
}
//hopefully this can help u :D
Check your build.gradle file and update the application block:
application {
// Define the main class for the application.
// insert the entire name of the class
mainClassName = 'packageName.MainClass'
}