看错误日志应该是语法问题,请教下怎么修复。
uts插件源码在附件
打包报错日志如下:
HBuilderX版本号:4.87
uniapp-cli版本: 4.87
uniapp 编译器版本: 4.87
云打包服务器SDK版本: 4.87
错误解决方案
错误描述: uts插件编译失败
解决方案: 请根据编译错误修改插件相关代码后重新提交打包。或联系插件作者解决。
######################
e: file://[PackagePath]/wgtRoot/UNI6496044/uni_modules/jg-jpush-u/utssdk/app-android/src/index.kt:59:33 Smart cast to 'Function1<@ParameterName(...) EventCallBack, Unit>' is impossible, because 'callback' is a mutable property that could be mutated concurrently. Use explicit '?.invoke' to make a function-like call instead.
FAILURE: Build failed with an exception.
-
What went wrong:
Execution failed for task ':uni_modules:jg-jpush-u:compileReleaseKotlin'.A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details -
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 7s
Error code = -5000
Error message:
UTS plugin @ utssdk jg-jpush-u compile error!