易软
易软
  • 发布:2021-01-05 11:42
  • 更新:2021-06-05 15:38
  • 阅读:733

3.0.4版本云打包 报依赖AndroidX

分类:uni-app

前天升级了IDE 到3.0.4版本,然后前天打包安卓云打包没有问题,结果今天加上了ios自定义铃声的插件,结果打包后安卓包报

This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.

需要我将gradle 中的useAndroidX 属性设置为true。
我在manifest.json 中加上了"useAndroidX": true 还是不行啊 这个 属性到底加在哪呢

2021-01-05 11:42 负责人:无 分享
已邀请:
易软

易软 (作者)

提示这个
https://service.dcloud.net.cn/build/errorLog/cbe4e630-4f08-11eb-ad03-89e4748872b2

8***@qq.com

8***@qq.com

同问 问题解决了吗?

  • 易软 (作者)

    加在插件的 pages.json里面.如果使用了讯飞 也不行 必须用百度

    2021-01-12 14:25

DCloud_App_Array

DCloud_App_Array

这个错误是因为插件依赖了androidX,请联系插件开发者
参考文档:https://nativesupport.dcloud.net.cn/NativePlugin/course/android?id=%e6%b3%a8%e6%84%8f

  • 易软 (作者)

    解决了,后面使用了讯飞又出问题了好像官方的讯飞不支持,改为百度了

    2021-01-12 14:25

长方体移动师

长方体移动师 - 一个奇葩的程序员

在你的插件 package.json(nativeplugins\xxx\) 中,增加 "useAndroidX": true // 可选,是否兼容使用AndroidX.
可参考:https://nativesupport.dcloud.net.cn/NativePlugin/course/package

该问题目前已经被锁定, 无法添加新回复