hello-uniapp
hello-uniapp copied to clipboard
云打包错误,提示Execution failed for task ':uni_modules:uts-progressNotification:compileReleaseKotlin'
HBuilder x 3.99 云打包失败,提示错误如下:
[HBuilder] 16:33:07.258 项目 my-project [__UNI__5A08F1B]的打包状态:
[HBuilder] 16:33:07.273 时间: 2024-03-04 16:22:19 类型: Android 公共测试证书 打包失败 错误日志: https://ide.dcloud.net.cn/build/errorLog/512b5f30-da00-11ee-8f53-2d4dff39b908
[HBuilder] 16:33:07.773 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
[HBuilder] 16:33:07.773 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
[HBuilder] 16:33:07.773 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] 16:33:07.773 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] 16:33:07.773 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] 16:33:07.773 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] 16:33:07.773 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] 16:33:07.773 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] 16:33:07.773 Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
[HBuilder] 16:33:07.773 Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
[HBuilder] 16:33:07.773 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:8 Expecting property name or receiver type
[HBuilder] 16:33:07.773 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] 16:33:07.773 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:39 Expecting '->' or ','
[HBuilder] 16:33:07.773 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:100:54 Expecting ')'
[HBuilder] 16:33:07.789 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] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:100:105 Expecting an element
[HBuilder] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:54 Expecting ')'
[HBuilder] 16:33:07.789 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] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:108:113 Expecting an element
[HBuilder] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:54 Expecting ')'
[HBuilder] 16:33:07.789 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] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:112:113 Expecting an element
[HBuilder] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:142:43 Expecting ')'
[HBuilder] 16:33:07.789 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] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:142:66 Expecting an element
[HBuilder] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:96:9 Variable expected
[HBuilder] 16:33:07.789 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] 16:33:07.789 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] 16:33:07.789 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] 16:33:07.789 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] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:97:9 Unresolved reference: progress
[HBuilder] 16:33:07.789 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] 16:33:07.789 e: file://uni_modules/uts-progressNotification/utssdk/app-android/src/index.kt:104:23 Unresolved reference: progress
[HBuilder] 16:33:07.789 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] 16:33:07.789 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] 16:33:07.789 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] 16:33:07.789
[HBuilder] 16:33:07.789 FAILURE: Build failed with an exception.
[HBuilder] 16:33:07.789
[HBuilder] 16:33:07.789 * What went wrong:
[HBuilder] 16:33:07.789 Execution failed for task ':uni_modules:uts-progressNotification:compileReleaseKotlin'.
[HBuilder] 16:33:07.789 > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
[HBuilder] 16:33:07.789 > Compilation error. See log for more details
[HBuilder] 16:33:07.789
[HBuilder] 16:33:07.789 * Try:
[HBuilder] 16:33:07.789 > Run with --stacktrace option to get the stack trace.
[HBuilder] 16:33:07.789 > Run with --info or --debug option to get more log output.
[HBuilder] 16:33:07.789 > Run with --scan to get full insights.
[HBuilder] 16:33:07.789
[HBuilder] 16:33:07.789 * Get more help at https://help.gradle.org
[HBuilder] 16:33:07.789
[HBuilder] 16:33:07.789 BUILD FAILED in 22s
遇到同样的问题,楼主有解决吗