Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

云打包错误,提示Execution failed for task ':uni_modules:uts-progressNotification:compileReleaseKotlin' #87

Open
zhizunbao84 opened this issue Mar 4, 2024 · 1 comment

Comments

@zhizunbao84
Copy link

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
@zhizunbao84 zhizunbao84 changed the title 云打包错误, 云打包错误,提示Execution failed for task ':uni_modules:uts-progressNotification:compileReleaseKotlin' Mar 4, 2024
@franktrue
Copy link

遇到同样的问题,楼主有解决吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants