安卓打包失败
时间: 2024-03-08 14:52:42 类型: Android云端证书 打包失败 错误日志: https://app.liuyingyong.cn/build/errorLog/76311990-dd18-11ee-974a-5f71ce4aa84d
[HBuilder] 14:58:36.981 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
[HBuilder] 14:58:36.982 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
[HBuilder] 14:58:36.982 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
[HBuilder] 14:58:36.983 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
[HBuilder] 14:58:36.983 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
[HBuilder] 14:58:36.984 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
[HBuilder] 14:58:36.984 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
[HBuilder] 14:58:36.984 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
[HBuilder] 14:58:36.985 Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
[HBuilder] 14:58:36.985 Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
[HBuilder] 14:58:36.985 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:226:12 Reference has a nullable type '(() -> Unit)?', use explicit '?.invoke()' to make a function-like call instead
[HBuilder] 14:58:36.986
[HBuilder] 14:58:36.986 FAILURE: Build failed with an exception.
[HBuilder] 14:58:36.986
[HBuilder] 14:58:36.986 * What went wrong:
[HBuilder] 14:58:36.987 Execution failed for task ':uni_modules:uts-progressNotification:compileReleaseKotlin'.
[HBuilder] 14:58:36.987 > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
[HBuilder] 14:58:36.987 > Compilation error. See log for more details
- 发布:2024-03-08 15:04
- 更新:2024-07-25 14:10
- 阅读:498
我也是同样的问题。作者是怎么解决的啊?编辑器版本4.23,已经是1.1.0版本。依旧报错。最奇怪的是基本相同的代码逻辑。另一个项目上可以正常打包。
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:\"extension-level\"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
Warning: unexpected element (uri:\"\", local:\"base-extension\"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:93:8 Expecting property name or receiver type
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:93:8 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:93:39 Expecting '->' or ','
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:97:54 Expecting ')'
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:97:55 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:97:105 Expecting an element
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:105:54 Expecting ')'
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:105:55 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:105:112 Expecting an element
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:54 Expecting ')'
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:55 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:112 Expecting an element
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:138:43 Expecting ')'
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:138:44 Unexpected tokens (use ';' to separate expressions on the same line)
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:138:66 Expecting an element
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:93:9 Variable expected
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:93:11 Cannot infer a type for this parameter. Please specify it explicitly.
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:93:21 Cannot infer a type for this parameter. Please specify it explicitly.
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:93:32 Cannot infer a type for this parameter. Please specify it explicitly.
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:93:45 Type mismatch: inferred type is CreateNotificationProgressOptions but (???, ???, ???) -> Unit was expected
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:94:9 Unresolved reference: progress
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:97:40 Type mismatch: inferred type is String? but String was expected
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:101:23 Unresolved reference: progress
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:105:40 Type mismatch: inferred type is String? but String was expected
e: file://[PackagePath]/wgtRoot/UNI5C357DD/uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:40 Type mismatch: inferred type is String? but String 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 29s
Error code = -5000
Error message:
UTS plugin @ utssdk uts-progressNotification compile error!
1***@qq.com - 一个铁憨憨
我也是同样的问题 ,编辑器版本4.24,1.1.0版本。依旧报错
[HBuilder] 13:44:26.784 时间: 2024-07-25 13:37:23 类型: Android自有证书 打包失败 错误日志: https://app.liuyingyong.cn/build/errorLog/f81e1c60-4a47-11ef-9e27-6d9a5f8cc73e
[HBuilder] 13:44:27.103 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
[HBuilder] 13:44:27.105 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
[HBuilder] 13:44:27.107 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
[HBuilder] 13:44:27.108 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
[HBuilder] 13:44:27.110 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
[HBuilder] 13:44:27.111 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
[HBuilder] 13:44:27.113 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
[HBuilder] 13:44:27.115 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
[HBuilder] 13:44:27.116 Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
[HBuilder] 13:44:27.119 Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
[HBuilder] 13:44:27.121 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:8 Expecting property name or receiver type
[HBuilder] 13:44:27.123 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:8 Unexpected tokens (use ';' to separate expressions on the same line)
[HBuilder] 13:44:27.126 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:39 Expecting '->' or ','
[HBuilder] 13:44:27.128 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:100:54 Expecting ')'
[HBuilder] 13:44:27.129 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:100:55 Unexpected tokens (use ';' to separate expressions on the same line)
[HBuilder] 13:44:27.130 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:100:105 Expecting an element
[HBuilder] 13:44:27.132 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:54 Expecting ')'
[HBuilder] 13:44:27.134 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:55 Unexpected tokens (use ';' to separate expressions on the same line)
[HBuilder] 13:44:27.135 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:113 Expecting an element
[HBuilder] 13:44:27.136 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:54 Expecting ')'
[HBuilder] 13:44:27.138 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:55 Unexpected tokens (use ';' to separate expressions on the same line)
[HBuilder] 13:44:27.139 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:113 Expecting an element
[HBuilder] 13:44:27.142 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:142:43 Expecting ')'
[HBuilder] 13:44:27.144 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:142:44 Unexpected tokens (use ';' to separate expressions on the same line)
[HBuilder] 13:44:27.145 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:142:66 Expecting an element
[HBuilder] 13:44:27.148 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:9 Variable expected
[HBuilder] 13:44:27.150 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:11 Cannot infer a type for this parameter. Please specify it explicitly.
[HBuilder] 13:44:27.152 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:21 Cannot infer a type for this parameter. Please specify it explicitly.
[HBuilder] 13:44:27.155 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:32 Cannot infer a type for this parameter. Please specify it explicitly.
[HBuilder] 13:44:27.158 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:45 Type mismatch: inferred type is CreateNotificationProgressOptions but (???, ???, ???) -> Unit was expected
[HBuilder] 13:44:27.160 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:97:9 Unresolved reference: progress
[HBuilder] 13:44:27.161 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:100:40 Type mismatch: inferred type is String? but String was expected
[HBuilder] 13:44:27.164 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:104:23 Unresolved reference: progress
[HBuilder] 13:44:27.165 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:40 Type mismatch: inferred type is String? but String was expected
[HBuilder] 13:44:27.167 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:40 Type mismatch: inferred type is String? but String was expected
[HBuilder] 13:44:27.168 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:136:48 Type mismatch: inferred type is UTSCallback but () -> Unit was expected
[HBuilder] 13:44:27.169
[HBuilder] 13:44:27.172 FAILURE: Build failed with an exception.
[HBuilder] 13:44:27.172
[HBuilder] 13:44:27.174 What went wrong:
[HBuilder] 13:44:27.176 Execution failed for task ':uni_modules:uts-progressNotification:compileReleaseKotlin'.
[HBuilder] 13:44:27.177 > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
[HBuilder] 13:44:27.181 > Compilation error. See log for more details
[HBuilder] 13:44:27.183
[HBuilder] 13:44:27.184 Try:
[HBuilder] 13:44:27.186 > Run with --stacktrace option to get the stack trace.
[HBuilder] 13:44:27.188 > Run with --info or --debug option to get more log output.
[HBuilder] 13:44:27.190 > Run with --scan to get full insights.
[HBuilder] 13:44:27.191
[HBuilder] 13:44:27.193 * Get more help at https://help.gradle.org
[HBuilder] 13:44:27.194
[HBuilder] 13:44:27.196 BUILD FAILED in 25s
-
回复 DCloud_Android_THB: 你好同样问题
错误解决方案
错误描述: uts插件uts-progressNotification编译错误
解决方案: 请将插件uts-progressNotification升级到最新版本,插件地址:https://ext.dcloud.net.cn/plugin?id=15842。如仍有问题,请联系插件作者。
######################
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:\"extension-level\"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
Warning: unexpected element (uri:\"\", local:\"base-extension\"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
删掉了unpackage 没有效果 还是报错
2024-09-20 10:11
淡然529 (作者)
我发现为什么会出现这个问题了,原因是我使用的是HBuilderX Alpha版,今天刚刚更新了导致出现这个问题。我现在用HBuilderX正式版是ok的,麻烦你们查一下是啥原因造成的,正式版3.99,Alpha版版本是4.02
2024-03-08 15:50
DCloud_Android_THB
回复 2***@qq.com: 我刚更新了一个版本 1.1.0 , 你再试试
2024-03-08 16:28
淡然529 (作者)
回复 DCloud_Android_THB: 使用的是HBuilderX Alpha版试试?
2024-03-08 16:31
DCloud_Android_THB
回复 2***@qq.com: 对
2024-03-08 16:36
淡然529 (作者)
回复 DCloud_Android_THB: 还是同样的问题,没有变化
2024-03-08 16:37
DCloud_Android_THB
回复 2***@qq.com: 你确定一下版本是不是1.1.0
2024-03-08 16:38
DCloud_Android_THB
回复 2***@qq.com: 清除unpackage目录
2024-03-08 16:43
淡然529 (作者)
回复 DCloud_Android_THB: 已经可以了,谢谢
2024-03-11 14:26
j***@outlook.com
回复 2***@qq.com: 后面怎么解决的啊,我也遇到了一样的问题
2024-04-09 20:53