为了账号安全,请及时绑定邮箱和手机立即绑定

KTExtentions.java文件中执行main方法报错,是怎么回事儿?

java代码如下:

KTExtentions {
    (String[] args) {
        KTExtensionsKt.(Jump())}
}

下面这个现象是正常的么?

报错如下:

9:35:22: Executing ':app:KTExtentions.main()'...


FAILURE: Build failed with an exception.

* Where:
Initialization script 'C:\Users\liu.xiaoqian\AppData\Local\Temp\KTExtentions_main__.gradle' line: 41

* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:KTExtentions.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 253ms
9:35:23: Execution finished ':app:KTExtentions.main()'.


正在回答

代码语言

举报

0/150
提交
取消

KTExtentions.java文件中执行main方法报错,是怎么回事儿?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号