云端证书 打包自定义基座失败

- 发布:2025-04-14 11:03
- 更新:2025-04-14 11:12
- 阅读:707
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 24H2
HBuilderX类型: Alpha
HBuilderX版本号: 4.51
手机系统: Android
手机系统版本号: Android 11
手机厂商: 华为
手机机型: pixel 9
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
打包自定义基座成功
打包自定义基座成功
实际结果:
打包自定义基座失败
打包自定义基座失败
bug描述:
[HBuilder] 10:58:15.000 项目 hello_uts [UNI69ADA43]的打包状态:
[HBuilder] 10:58:15.000 时间: 2025-04-14 10:46:45 类型: Android云端证书 打包失败 错误日志: https://app.liuyingyong.cn/build/errorLog/b414cdb0-18da-11f0-9324-1349b72b6fce
[HBuilder] 10:58:15.997 e: file://uni_modules/uts-test-syntax-union/utssdk/app-android/src/index.kt:26:5 None of the following functions can be called with the arguments supplied:
[HBuilder] 10:58:15.997 public fun test2(a: Number): Any defined in uts.sdk.modules.utsTestSyntaxUnion in file index.kt
[HBuilder] 10:58:15.997 public fun test2(a: String): Any defined in uts.sdk.modules.utsTestSyntaxUnion in file index.kt
[HBuilder] 10:58:15.997 public fun test2(arg: Test1Arg?): String defined in uts.sdk.modules.utsTestSyntaxUnion in file index.kt
[HBuilder] 10:58:15.997 public fun test2(arg: Test2Arg?): ArrayBuffer defined in uts.sdk.modules.utsTestSyntaxUnion in file index.kt
[HBuilder] 10:58:15.997 e: file://uni_modules/uts-test-syntax-union/utssdk/app-android/src/index.kt:255:15 Unresolved reference: length
[HBuilder] 10:58:15.997 e: file://uni_modules/uts-test-syntax-union/utssdk/app-android/src/index.kt:259:15 Unresolved reference: byteLength
[HBuilder] 10:58:15.997 e: file://uni_modules/uts-test-syntax-union/utssdk/app-android/src/index.kt:263:15 Unresolved reference: length
[HBuilder] 10:58:15.997 e: file://uni_modules/uts-test-syntax-union/utssdk/app-android/src/index.kt:267:15 Unresolved reference: byteLength
[HBuilder] 10:58:15.997
[HBuilder] 10:58:15.997 FAILURE: Build failed with an exception.
[HBuilder] 10:58:15.997
[HBuilder] 10:58:15.997 What went wrong:
[HBuilder] 10:58:15.997 Execution failed for task ':uni_modules:uts-test-syntax-union:compileReleaseKotlin'.
[HBuilder] 10:58:15.997 > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
[HBuilder] 10:58:15.998 > Compilation error. See log for more details
[HBuilder] 10:58:15.998
[HBuilder] 10:58:15.998 Try:
[HBuilder] 10:58:15.998 > Run with --stacktrace option to get the stack trace.
[HBuilder] 10:58:15.998 > Run with --info or --debug option to get more log output.
[HBuilder] 10:58:15.998 > Run with --scan to get full insights.
[HBuilder] 10:58:15.998 > Get more help at https://help.gradle.org.
[HBuilder] 10:58:15.998
[HBuilder] 10:58:15.998 BUILD FAILED in 30s
[HBuilder] 10:58:15.998
[HBuilder] 10:58:16.222 e: file://uni_modules/uts-tests/utssdk/app-android/src/index.kt:4082:24 Unexpected tokens (use ';' to separate expressions on the same line)
[HBuilder] 10:58:16.223 e: file://uni_modules/uts-tests/utssdk/app-android/src/index.kt:4084:27 Unexpected tokens (use ';' to separate expressions on the same line)
[HBuilder] 10:58:16.223 e: file://uni_modules/uts-tests/utssdk/app-android/src/index.kt:774:58 Not enough information to infer type variable T
[HBuilder] 10:58:16.223 e: file://uni_modules/uts-tests/utssdk/app-android/src/index.kt:798:59 Not enough information to infer type variable T
[HBuilder] 10:58:16.223 e: file://uni_modules/uts-tests/utssdk/app-android/src/index.kt:4246:19 Type mismatch: inferred type is Number but Double was expected
[HBuilder] 10:58:16.223 e: file://uni_modules/uts-tests/utssdk/app-android/src/index.kt:4247:33 The integer literal does not conform to the expected type Double
[HBuilder] 10:58:16.223
[HBuilder] 10:58:16.223 FAILURE: Build failed with an exception.
[HBuilder] 10:58:16.223
[HBuilder] 10:58:16.223 What went wrong:
[HBuilder] 10:58:16.223 Execution failed for task ':uni_modules:uts-tests:compileReleaseKotlin'.
[HBuilder] 10:58:16.223 > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
[HBuilder] 10:58:16.223 > Compilation error. See log for more details
[HBuilder] 10:58:16.223
[HBuilder] 10:58:16.223 Try:
[HBuilder] 10:58:16.223 > Run with --stacktrace option to get the stack trace.
[HBuilder] 10:58:16.223 > Run with --info or --debug option to get more log output.
[HBuilder] 10:58:16.223 > Run with --scan to get full insights.
[HBuilder] 10:58:16.223 > Get more help at https://help.gradle.org.
[HBuilder] 10:58:16.223
[HBuilder] 10:58:16.223 BUILD FAILED in 57s
[HBuilder] 10:58:16.223
1 个回复
HZbb (作者)
版本 Alpha 4.57 不是4.51