栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

apicloud AndroidX 无法编译 编译报错 This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ p

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

apicloud AndroidX 无法编译 编译报错 This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ p

最近很多使用apicloud编译uniapp的朋友们都出现了一个编译错误:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:javaPreCompileRelease’.

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.
The following AndroidX dependencies are detected: androidx.collection:collection:1.0.0, androidx.core:core:1.1.0, androidx.versionedparcelable:versionedparcelable:1.1.0, androidx.lifecycle:lifecycle-common:2.0.0, androidx.arch.core:core-common:2.0.0, androidx.lifecycle:lifecycle-runtime:2.0.0, androidx.annotation:annotation:1.1.0

  • 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 9s

我也遇到了 百度查了一些资料
按照https://docs.apicloud.com/Module-Dev/module-dev-guide-for-android-studio#resoure91做了一些相应的配置 比如



    

    

    

    

    


但是上面的 并不能解决问题,再次云编译还是报错。

论坛上也找不到答案,甚至我连发帖都登录不了,用友云真牛。

那么我最终的解决方案是:

通过降低编译的引擎版本到3.0.17解决了 这个问题。

问题虽然暂时解决,但对于应用的云编译我总觉得很悬。
哪天apicloud挂了 而我们面临紧急发布 或者 一些hotfix
是否意味着生产事故发生缺干着急?
云编译有好处,但不能过于依赖。

uniapp的开发者还是得要在本地有一套编译环境。

以上, 完毕。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/687078.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号