Execution failed for task ':SingletonDemo1.main()'.
> Process 'command 'E:/java16/bin/java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
解决方法 ->改成Intellij IDEA即可