导入uni-upgrade-center - App插件,进行APP云打包

- 发布:2025-08-04 16:42
- 更新:2025-08-06 16:53
- 阅读:169
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Win10专业版本 20H2
HBuilderX类型: 正式
HBuilderX版本号: 4.74
手机系统: Android
手机系统版本号: Android 14
手机厂商: 华为
手机机型: p30
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
打包成功
打包成功
实际结果:
APP云端打包报错
APP云端打包报错
bug描述:
Appid: UNI9F00073
HBuilderX版本号:4.66
uniapp-cli版本: 3.6.18
uniapp 编译器版本: 3.6.18
云打包服务器SDK版本: 4.75
错误解决方案
错误描述: uts插件uts-progressNotification编译错误
解决方案: 请将插件uts-progressNotification升级到最新版本,插件地址:https://ext.dcloud.net.cn/plugin?id=15842。如仍有问题,请联系插件作者。
######################
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:8 Expecting property name or receiver type
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:8 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:39 Expecting '->' or ','
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:54 Expecting ')'
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:55 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:105 Expecting an element
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:120:54 Expecting ')'
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:120:55 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:120:113 Expecting an element
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:124:54 Expecting ')'
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:124:55 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:124:113 Expecting an element
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:154:43 Expecting ')'
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:154:44 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:154:66 Expecting an element
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:9 Variable expected
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:11 Cannot infer a type for this parameter. Please specify it explicitly.
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:21 Cannot infer a type for this parameter. Please specify it explicitly.
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:32 Cannot infer a type for this parameter. Please specify it explicitly.
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:45 Type mismatch: inferred type is CreateNotificationProgressOptions but (???, ???, ???) -> Unit was expected
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:109:9 Unresolved reference: progress
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:40 Type mismatch: inferred type is String? but String was expected
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:116:23 Unresolved reference: progress
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:120:40 Type mismatch: inferred type is String? but String was expected
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:123:20 Type mismatch: inferred type is Number but Int was expected
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:124:40 Type mismatch: inferred type is String? but String was expected
e: file://[PackagePath]/wgtRoot/UNI9F00073/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:148:49 Type mismatch: inferred type is UTSCallback but (() -> Unit)? was expected
FAILURE: Build failed with an exception.
-
What went wrong:
Execution failed for task ':uni_modules:uts-progressNotification: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 11s
Error code = -5000
Error message:
UTS plugin @ utssdk uts-progressNotification compile error!
1 个回复
DCloud_App_Array
从日志看你的项目是cli项目(cli命令的版本号还是3.6.18),请更新cli命令到最新版本。