山葵蛋卷
山葵蛋卷
  • 发布:2023-10-31 14:22
  • 更新:2024-02-23 16:58
  • 阅读:317

【报Bug】更新HBuilderX最新版本后,部分插件【lemon-filePicker】打包报错,回退后打包成功。

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

HBuilderX类型: 正式

HBuilderX版本号: 3.95

手机系统: Android

手机系统版本号: Android 12

手机厂商: 模拟器

手机机型: 18409242030

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

App下载地址或H5⽹址: no

操作步骤:

HBuilderX升级到最新版本,打包报错

预期结果:

希望可以正确打包

实际结果:
Appid: __UNI__50BF897  
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/__UNI__50BF897/uni_modules/lemon-filePicker/utssdk/app-android/src/index.kt:77:74 Type mismatch: inferred type is Number but Int was expected  
e: file://[PackagePath]/wgtRoot/__UNI__50BF897/uni_modules/lemon-filePicker/utssdk/app-android/src/index.kt:85:73 Type mismatch: inferred type is Number but Int was expected  

FAILURE: Build failed with an exception.  

* What went wrong:  
Execution failed for task ':uni_modules:lemon-filePicker: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 1m 15sWarning: 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>  
Error code = -5000  
Error message:  
UTS plugin @ uni_modules lemon-filePicker compile error!  

bug描述:

更新新版本后,部分插件【lemon-filePicker】打包报错,回退后打包成功。

Appid: __UNI__50BF897  
e: file://[PackagePath]/wgtRoot/__UNI__50BF897/uni_modules/lemon-filePicker/utssdk/app-android/src/index.kt:77:74 Type mismatch: inferred type is Number but Int was expected  
e: file://[PackagePath]/wgtRoot/__UNI__50BF897/uni_modules/lemon-filePicker/utssdk/app-android/src/index.kt:85:73 Type mismatch: inferred type is Number but Int was expected  

FAILURE: Build failed with an exception.  

* What went wrong:  
Execution failed for task ':uni_modules:lemon-filePicker: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 3m 2s  
Error code = -5000  
Error message:  
UTS plugin @ uni_modules lemon-filePicker compile error!
2023-10-31 14:22 负责人:无 分享
已邀请:
1027956368

1027956368

e: file://[PackagePath]/wgtRoot/UNI50BF897/uni_modules/lemon-filePicker/utssdk/app-android/src/index.kt:77:74 Type mismatch: inferred type is Number but Int was expected
e: file://[PackagePath]/wgtRoot/UNI50BF897/uni_modules/lemon-filePicker/utssdk/app-android/src/index.kt:85:73 Type mismatch: inferred type is Number but Int was expected
遇到同样问题,升级后类型转换出错,需要修复index.kt中的类型,3.99版本打包成功了

要回复问题请先登录注册