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

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下载
官方微信