【问题标题】:AAPT: error: duplicate value for resource 'attr/orientation' with config ''AAPT:错误:资源“attr/orientation”与配置“”的重复值
【发布时间】:2020-06-21 14:47:59
【问题描述】:

我正在使用第三方库(cosmos 日历),它具有 android.support 依赖项,而我对所有项目都使用 androidx。这导致了冲突,并且在 gridLayout 依赖项上出现此错误:

AAPT: error: duplicate value for resource 'attr/orientation' with config ''.

我删除了 gridlayout 或 cosmos 日历依赖项,项目构建但无法同时使用这两个依赖项构建。我该如何解决这个冲突?

【问题讨论】:

标签: android android-support-library androidx grid-layout aapt


【解决方案1】:

我最终从 github 导入了整个 cosmoCalendar 库,因为它是一个开源项目)迁移并重构它以与 AndroidX 一起使用,然后将其打包到一个 .aar 文件中并将其作为依赖项添加到我的项目中,然后一切正常很好。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-12-01
    • 2019-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多