【问题标题】:Manifest merger failed - Don't want to migrate to androidx清单合并失败 - 不想迁移到 androidx
【发布时间】:2020-04-21 20:44:33
【问题描述】:

我不想迁移到 androidx。我该怎么办???

错误:清单合并失败:属性 application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) 来自 [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18- 91 也存在于 [androidx.core:core:1.1.0] AndroidManifest.xml:24:18-86 value=(androidx.core.app.CoreComponentFactory)。 建议:将 'tools:replace="android:appComponentFactory"' 添加到 AndroidManifest.xml:25:5-120:19 的元素以覆盖。

【问题讨论】:

    标签: android


    【解决方案1】:

    不迁移到Androidx 将在未来限制您。如果您确定您的应用程序将来不会使用新的 API 或库,请随时坚持使用 Android 命名法。但如果你不确定,那么经历痛苦的​​过程是值得的。

    有一些文档可以帮助您执行这种巨大的迁移,基本上是使用增量方法。随意参考本文档并通过执行小增量来虔诚地遵循它。

    博客

    1. Androidx official documentation
    2. Cross stitching android and Androidx
    3. Migrating to Androidx Tips

    视频指南

    1. Androidx Video Guide

    【讨论】:

      猜你喜欢
      • 2019-08-08
      • 2020-02-28
      • 2019-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多