HarmonyOS鸿蒙Next中跨平台开发, 第三方库@yunkss/eftool报错: 'xxxx' can't support crossplatform application 如何处理?
HarmonyOS鸿蒙Next中跨平台开发, 第三方库@yunkss/eftool报错: ‘xxxx’ can’t support crossplatform application 如何处理? 跨平台开发, 在依赖第三方库"@yunkss/eftool" 时, 会报下面的错误, 这个要如何处理?
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:70:20
'distributedKVStore' can't support crossplatform application.
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:70:39
'KVStoreType' can't support crossplatform application.
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:70:51
'SINGLE_VERSION' can't support crossplatform application.
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:72:22
'distributedKVStore' can't support crossplatform application.
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:72:41
'SecurityLevel' can't support crossplatform application.
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:72:55
'S1' can't support crossplatform application.
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:75:41
'getKVStore' can't support crossplatform application.
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:106:27
'put' can't support crossplatform application.
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:122:43
'get' can't support crossplatform application.
ERROR: ArkTS:ERROR File: /xxxx/samples-master/Shopping/oh_modules/.ohpm/[@yunkss](/user/yunkss)+eftool@2.0.2/oh_modules/[@yunkss](/user/yunkss)/eftool/src/main/ets/device/KvUtil.ets:142:27
'delete' can't support crossplatform application.
COMPILE RESULT:FAIL {ERROR:425 WARN:344}
> hvigor ERROR: BUILD FAILED in 7 s 559 ms
更多关于HarmonyOS鸿蒙Next中跨平台开发, 第三方库@yunkss/eftool报错: 'xxxx' can't support crossplatform application 如何处理?的实战教程也可以访问 https://www.itying.com/category-93-b0.html
6 回复
补充下IDE和API版本
更多关于HarmonyOS鸿蒙Next中跨平台开发, 第三方库@yunkss/eftool报错: 'xxxx' can't support crossplatform application 如何处理?的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
SDK版本问题把,这个三方库要求是API12。
- 确认下API版本是否是API12
- 升级IDE到最新版本重试,我本地试过可以
最新版本IDE, API12,
看你下面的截图,你是在arkts-X使用的把,这个可以在作者那边提个issue问一下适配了吗?很早以前说是还没适配,现在不确定。
issue
好的, 谢谢啦,