1***@qq.com
1***@qq.com
  • 发布:2024-11-15 12:07
  • 更新:2024-11-15 15:53
  • 阅读:102

打包基座失败 #插件讨论# 【 andriod扫码原生插件UTS版本(毫秒级扫码,支持多种类型码,支持扫多个码) - android支持 】

分类:HBuilderX

Appid: UNI65117FC

错误解决方案

错误描述: uts插件编译失败
解决方案: 请根据编译错误修改插件相关代码后重新提交打包。或联系插件作者解决。
######################

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':uni_modules:xt-barcode-scan:compileReleaseKotlin'.

    Could not resolve all files for configuration ':uni_modules:xt-barcode-scan:releaseCompileClasspath'.
    Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4.
    Required by:
    project :uni_modules:xt-barcode-scan
    project :uni_modules:xt-barcode-scan > org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4
    Cannot find a version of 'org.jetbrains.kotlinx:kotlinx-coroutines-core' that satisfies the version constraints:
    Dependency path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
    Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:{strictly 1.6.1}' because of the following reason: releaseRuntimeClasspath uses version 1.6.1
    Dependency path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (apiElements) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
    Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (apiElements) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1' (platform-compile) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'

Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4.
Required by:
project :uni_modules:xt-barcode-scan
Cannot find a version of 'org.jetbrains.kotlinx:kotlinx-coroutines-android' that satisfies the version constraints:
Dependency path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:{strictly 1.6.1}' because of the following reason: releaseRuntimeClasspath uses version 1.6.1
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (apiElements) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1' (platform-compile) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'androidx.appcompat:appcompat:1.6.1' (releaseVariantReleaseApiPublication) --> 'androidx.activity:activity:1.6.0' (releaseVariantReleaseApiPublication) --> 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1' (releaseVariantReleaseApiPublication) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'

Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-android:{strictly 1.6.1}.
Required by:
project :uni_modules:xt-barcode-scan
Cannot find a version of 'org.jetbrains.kotlinx:kotlinx-coroutines-android' that satisfies the version constraints:
Dependency path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:{strictly 1.6.1}' because of the following reason: releaseRuntimeClasspath uses version 1.6.1
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (apiElements) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1' (platform-compile) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'androidx.appcompat:appcompat:1.6.1' (releaseVariantReleaseApiPublication) --> 'androidx.activity:activity:1.6.0' (releaseVariantReleaseApiPublication) --> 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1' (releaseVariantReleaseApiPublication) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'

Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-core:{strictly 1.6.1}.
Required by:
project :uni_modules:xt-barcode-scan
Cannot find a version of 'org.jetbrains.kotlinx:kotlinx-coroutines-core' that satisfies the version constraints:
Dependency path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:{strictly 1.6.1}' because of the following reason: releaseRuntimeClasspath uses version 1.6.1
Dependency path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (apiElements) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (apiElements) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1' (platform-compile) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'

Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1.
Required by:
project :uni_modules:xt-barcode-scan > org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1
project :uni_modules:xt-barcode-scan > androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1
Cannot find a version of 'org.jetbrains.kotlinx:kotlinx-coroutines-android' that satisfies the version constraints:
Dependency path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:{strictly 1.6.1}' because of the following reason: releaseRuntimeClasspath uses version 1.6.1
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (apiElements) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1' (platform-compile) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'androidx.appcompat:appcompat:1.6.1' (releaseVariantReleaseApiPublication) --> 'androidx.activity:activity:1.6.0' (releaseVariantReleaseApiPublication) --> 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1' (releaseVariantReleaseApiPublication) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'

Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1.
Required by:
project :uni_modules:xt-barcode-scan > org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1
Cannot find a version of 'org.jetbrains.kotlinx:kotlinx-coroutines-core' that satisfies the version constraints:
Dependency path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:{strictly 1.6.1}' because of the following reason: releaseRuntimeClasspath uses version 1.6.1
Dependency path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (apiElements) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
Constraint path 'uni-app-v2-android.uni_modules:xt-barcode-scan:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (apiElements) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1' (platform-compile) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'* 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 3m
Error code = -5000
Error message:
UTS plugin @ utssdk xt-barcode-scan compile error!

2024-11-15 12:07 负责人:无 分享
已邀请:
android支持

android支持 - 需要深度合作,可以先群里或者请联系qq:243448165

org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4.
这个依赖应该被你项目里哪个模块移出了,uiniapp默认带这个依赖的,你在你项目的配置文件里把这个依赖重新导入下

android支持

android支持 - 需要深度合作,可以先群里或者请联系qq:243448165

{
"dependencies": [
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
]
}

  • 1***@qq.com

    加上之后 好像也没用, 打包都上限了 也没用上

    2024-12-01 17:41

要回复问题请先登录注册