android 运行 main 方法 SourceSet with name ‘main‘ not found.
FAILURE: Build failed with an exception.* Where:Initialization script 'C:\Users\Hysoon\AppData\Local\Temp\ExportPrivateKey_main__.gradle' line: 21* What went wrong:A problem occurred configuring proje
·
FAILURE: Build failed with an exception.
* Where:
Initialization script 'C:\Users\Hysoon\AppData\Local\Temp\ExportPrivateKey_main__.gradle' line: 21
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:ExportPrivateKey.main()'.
> SourceSet with name 'main' not found.
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 448ms
13:44:51: Task execution finished 'ExportPrivateKey.main()'.
这个是报错 Android 里面不能像java里面那样直接运行main 方法
解决方法如下
更多推荐
已为社区贡献3条内容
所有评论(0)