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 方法

解决方法如下

在这里插入图片描述

戳这里!戳这里!戳这里!

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐