7***@qq.com
7***@qq.com
  • 发布:2023-07-10 16:23
  • 更新:2023-10-19 19:20
  • 阅读:646

#插件讨论# 【 uni-wifi - DCloud移动团队 】打包失败

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

UTS plugin @ uni_modules uni-wifi compile error!
打包失败了!!。怎么回事啊

2023-07-10 16:23 负责人:无 分享
已邀请:
昭昭L

昭昭L - 开心就好

日志呢,看看完整的日志

  • 7***@qq.com (作者)

    Appid: UNI74922AC

    Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01

    Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01

    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01

    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01

    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01

    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01

    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

    Warning: unexpected element (uri:\"\", local:\"base-extension\"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

    wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:217:37: error: unresolved reference: push

    Global.scanList.push(wrapUniWifiInfoFromScan(scanResult));

    ^

    wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:293:38: error: unresolved reference: push

    Global.onWifiConnectCallbackList.push(callback);

    ^

    wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:296:53: error: unresolved reference: push

    Global.onWifiConnectWithPartialInfoCallbackList.push(callback);

    ^

    wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:304:62: error: unresolved reference: splice

    if (callbackIndex >= 0) Global.onWifiConnectCallbackList.splice(callbackIndex, 1);

    ^

    wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:312:77: error: unresolved reference: splice

    if (callbackIndex >= 0) Global.onWifiConnectWithPartialInfoCallbackList.splice(callbackIndex, 1);

    ^

    wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:323:53: error: unresolved reference: length

    if (Global.mReceiver == null || Global.scanList.length < 1) {

    ^


    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 2m 35s

    Error code = -5000

    Error message:

    UTS plugin @ uni_modules uni-wifi compile error!

    2023-07-10 16:41

7***@qq.com

7***@qq.com (作者)

Appid: UNI74922AC
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:\"\", local:\"base-extension\"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:217:37: error: unresolved reference: push
Global.scanList.push(wrapUniWifiInfoFromScan(scanResult));
^
wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:293:38: error: unresolved reference: push
Global.onWifiConnectCallbackList.push(callback);
^
wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:296:53: error: unresolved reference: push
Global.onWifiConnectWithPartialInfoCallbackList.push(callback);
^
wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:304:62: error: unresolved reference: splice
if (callbackIndex >= 0) Global.onWifiConnectCallbackList.splice(callbackIndex, 1);
^
wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:312:77: error: unresolved reference: splice
if (callbackIndex >= 0) Global.onWifiConnectWithPartialInfoCallbackList.splice(callbackIndex, 1);
^
wgtRoot/UNI74922AC/uni_modules/uni-wifi/utssdk/app-android/src/index.kt:323:53: error: unresolved reference: length
if (Global.mReceiver == null || Global.scanList.length < 1) {
^

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 2m 35s
Error code = -5000
Error message:
UTS plugin @ uni_modules uni-wifi compile error!

  • 1***@qq.com

    解决了吗?

    2023-08-23 09:18

  • 不凡的青石

    回复 1***@qq.com: 你解决了吗?我也遇见同样的问题。

    2023-09-15 15:46

i***@ipotisedge.com

i***@ipotisedge.com

请问解决了么?可以告诉我一下么,我也遇到这个问题了

1***@qq.com

1***@qq.com

请问解决了么?我也遇到这个问题了

1***@qq.com

1***@qq.com

解决了吗 同样遇到问题,之前还可以 ,这个插件更新了一个版本 不行了

神奇的小豆丁

神奇的小豆丁

需要检查一下package.json中配置的@dcloudio/uni-uts-v1包,有些版本之前能用现在不能用了,我通过执行 npm i @dcloudio/uni-uts-v1@3.0.0-3081220230817001 -D 更新包的版本解决了

5***@qq.com

5***@qq.com

那么久了还没解决吗.....

要回复问题请先登录注册