1***@163.com
1***@163.com
  • 发布:2024-03-16 15:28
  • 更新:2024-04-15 20:35
  • 阅读:319

uni-app x 调用 uni.chooseImage 后报java.lang.NoClassDefFoundError,这是什么原因呢?

分类:uni-app x

错误日志:
[⁠java.lang.NoClassDefFoundError⁠]‍ {cause: {cause: null, message: "Didn't find class "io.dcloud.uniapp.extapi.UniMediaKt" on path: DexPathList[[dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-bottom-actons-group/iot-bottom-actons-group/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-bottom-popup/iot-bottom-popup/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-datetime-picker/iot-datetime-picker/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-icon/iot-icon/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-linkman/iot-linkman/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-list-selector/iot-list-selector/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-line/iot-line/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-list-view/iot-list-view/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-popover/iot-popover/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-search/iot-search/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-select-photo/iot-select-photo/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-tab-bars/iot-tab-bars/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-tab-layout/iot-tab-layout/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-title-text/iot-title-text/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-title-bar/iot-title-bar/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/components/iot-tree-node/iot-tree-node/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/index/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/launch/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/login/login/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/main/app-setting/app-setting/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/main/device/add/device-list-add/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/main/device/detail/device-list-detail/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/main/device/detail/device-list-detail-base-info/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/main/device/device-list-collect/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/main/device/filter-device-list/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/main/device/filter-device-list-device-type/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/main/device/device-list/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/main/device/filter-device-list-select-part/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/selectors/dict-list/dict-list/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/selectors/facility-list/selector-facility-list/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/selectors/iot-amap/iot-amap/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/test-nht/test-nht/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/tabbar/tabbar1/filter-fire-unit-history/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/tabbar/tabbar1/filter-fire-unit-monitor-alarm/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/tabbar/tabbar1/fire-unit-history/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/tabbar/tabbar1/fire-unit-monitor-alarm/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/tabbar/tabbar1/tabbar1/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/tabbar/tabbar2/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/tabbar/tabbar3/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/tabbar/tabbar4/tab-me/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/pages/tabbar/tabbar4/tabbar4/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/firstui-uvue/components/fui-bottom-popup/fui-bottom-popup/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/firstui-uvue/components/fui-grid/fui-grid/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/firstui-uvue/components/fui-grid-item/fui-grid-item/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/firstui-uvue/components/fui-icon/fui-icon/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/firstui-uvue/components/fui-list/fui-list/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/firstui-uvue/components/fui-list-cell/fui-list-cell/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/firstui-uvue/components/fui-row/fui-row/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/firstui-uvue/components/fui-tabs/fui-tabs/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/jk-amap/utssdk/app-android/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/jk-encrypt/utssdk/app-android/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/z-paging-x/components/z-paging-x/components/z-paging-loading/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/z-paging-x/components/z-paging-x/components/z-paging-refresher/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/z-paging-x/components/z-paging-x/components/z-paging-load-more/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/z-paging-x/components/z-paging-x/z-paging-x/classes.dex", dex file "/storage/emulated/0/Android/data/com.jbufa.iot3/apps/UNI93A9430/www/uni_modules/z-paging-x/components/z-paging-x-empty/z-paging-x-empty/classes.dex", zip file "/data/app/ZMsvSFTcef8lPcSggsW36g==/com.jbufa.iot3-4J_rypCMG6bu2qvgY_cpDA==/base.apk"],nativeLibraryDirectories=[/data/app/ZMsvSFTcef8lPcSggsW36g==/com.jbufa.iot3-4J_rypCMG6bu2qvgY_cpDA==/lib/arm64, /data/app/~~ZMsvSFTcef8lPcSggsW36g==/com.jbufa.iot3-4J_rypCMG6bu2qvgY_cpDA==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64, /hw_product/lib64, /system/lib64/module/multimedia]]"}, message: "Failed resolution of: Lio/dcloud/uniapp/extapi/UniMediaKt;"}

2024-03-16 15:28 负责人:无 分享
已邀请:
DCloud_Android_zl

DCloud_Android_zl

HBuilderX的版本是多少?标准基座还是自定义基座,如果是自定义基座的话麻烦也发出来。

  • 1***@163.com (作者)

    HBuilderX版本: 4.03.2024031101-alpha 。 是自定义基座。

    2024-03-16 16:08

  • DCloud_Android_zl

    回复 1***@163.com: 自定义基座提供一下

    2024-03-16 16:51

  • GeorgeZeng

    回复 DCloud_Android_zl:


    [⁠java.lang.NoClassDefFoundError⁠]‍ {cause: {cause: null, message: "Didn't find class "io.dcloud.uniapp.extapi.UniMediaKt" on path: DexPathList[[dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/components/index-list-career/index-list-career/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/components/index-list-resume/index-list-resume/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/components/yp-form-input-text/yp-form-input-text/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/components/yp-input-area/yp-input-area/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/components/yp-input-code/yp-input-code/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/components/yp-input-data/yp-input-data/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/components/yp-input-search/yp-input-search/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/components/yp-picker-area/yp-picker-area/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/index/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/pages/forget-password/forget-password/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/pages/login/login/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/pages/registration/registration/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/pages/splash/splash/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/pages/tabBar/index/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/pages/tabBar/issue/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/pages/user/authentication/authentication/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/pages/user/index-identity/step1/classes.dex", dex file "/storage/emulated/0/Android/data/com.ydmnet.etrc/apps/UNI8C8C909/www/pages/user/index-identity/step2/classes.dex", zip file "/data/app/f58u3aStCTbOVSlon9rMBg==/com.ydmnet.etrc-L0seQ6Fr_8vVqmI_boeLNw==/base.apk"],nativeLibraryDirectories=[/data/app/f58u3aStCTbOVSlon9rMBg==/com.ydmnet.etrc-L0seQ6Fr_8vVqmI_boeLNw==/lib/arm64, /data/app/~~f58u3aStCTbOVSlon9rMBg==/com.ydmnet.etrc-L0seQ6Fr_8vVqmI_boeLNw==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/lib64/module/multimedia, /system/product/lib64]]"}, message: "Failed resolution of: Lio/dcloud/uniapp/extapi/UniMediaKt;"}


    huibuidx版本: 4.0.8

    2024-04-15 18:22

GeorgeZeng

GeorgeZeng - 80后老挨踢

基座见附件

GeorgeZeng

GeorgeZeng - 80后老挨踢

问题解决了,调试基座的问题,重新打包就好了

要回复问题请先登录注册