1***@qq.com
1***@qq.com
  • 发布:2025-03-10 13:40
  • 更新:2025-03-10 13:40
  • 阅读:25

#插件讨论# 【 uni-wifi - DCloud移动团队 】运行报错,打包失败

分类:uni-app
关联插件: uni-wifi

真机调试的时候可以使用,但是第二次使用会报错且不会正常运行,且报错,报错:13:35:54.797 [JS Framework] Failed to execute the callback function:
Error: targetMethod error::java.lang.NullPointerException: Parameter specified as non-null is null: method uts.sdk.modules.uniWifi.IndexKt.stopWifiByJs, parameter option
13:35:54.797 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught Error: targetMethod error::java.lang.NullPointerException: Parameter specified as non-null is null: method uts.sdk.modules.uniWifi.IndexKt.stopWifiByJs, parameter option
at _u (uni-jsframework.js:1:151973)
at (uni-jsframework.js:1:153329)
at r (uni-jsframework.js:1:152915)
at CallbackManager.consume (uni-jsframework.js:1:1414)
at TaskCenter.callback (uni-jsframework.js:1:24801)
at callback (uni-jsframework.js:1:23987)
at (uni-jsframework.js:1:24437)
at receiveTasks (uni-jsframework.js:1:24373)
打包的话就是报错,报错日志见下
报错```javascript

错误解决方案

错误描述: uts插件编译失败
解决方案: 请根据编译错误修改插件相关代码后重新提交打包。或联系插件作者解决。
######################

e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:667:41 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:668:18 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:670:18 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:673:18 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:678:56 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:679:18 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:681:18 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:684:18 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:692:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:693:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:695:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:698:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:708:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:709:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:711:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:714:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:721:39 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:722:18 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:724:18 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:727:18 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:735:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:736:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:738:22 Unresolved reference: fnJS
e: file://[PackagePath]/wgtRoot/UNIC637186/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:741:22 Unresolved reference: fnJS

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':uni_modules:uni-wifi: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 2s
Error code = -5000
Error message:
UTS plugin @ utssdk uni-wifi compile error!

2025-03-10 13:40 负责人:无 分享
已邀请:

要回复问题请先登录注册