【问题标题】:Merging Errors: Error: Attribute application@appComponentFactory in android 28.0.3合并错误:错误:android 28.0.3 中的属性 application@appComponentFactory
【发布时间】:2020-02-20 10:23:00
【问题描述】:

合并错误:错误:AndroidManifest.xml:22:18-86 中的属性 application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) 也存在于 AndroidManifest.xml:22:18-91 value=(android .support.v4.app.CoreComponentFactory)。建议:将 'tools:replace="android:appComponentFactory"' 添加到 AndroidManifest.xml:39:5-738:19 的元素以覆盖。

在 android 28.0.3 中,我想要不迁移 androidx 的解决方案。提前致谢。

【问题讨论】:

    标签: android android-manifest android-9.0-pie


    【解决方案1】:

    正如建议的那样,你为什么不添加

    android:appComponentFactory="android.support.v4.app.CoreComponentFactory"
    tools:replace="android:appComponentFactory"  
    

    到 mainfest 应用程序标签。如果您想使用支持库而不是 androidx,请不要尝试使用使用 androidx 的库。

    【讨论】:

    • 现在它给出错误错误:无法解析':CrushOnTube@debug/compileClasspath'的依赖关系:无法解析com.google.android.gms:play-services-ads-identifier:12.0.1 .错误:无法解析 ':CrushOnTube@debugUnitTest/compileClasspath' 的依赖关系:无法解析 com.android.support:cardview-v7:[26.0.0, 27.99.99]。错误:无法解析 ':CrushOnTube@debugUnitTest/compileClasspath' 的依赖关系:无法解析 com.android.support:support-v4:[26.0.0, 27.99.99]。我不想使用 androidx
    • 现在出现错误:无法解析 ':CrushOnTube@debug/compileClasspath' 的依赖关系:无法解析 com.google.android.gms:play-services-ads-identifier:12.0.1。
    • 为什么你不想使用 androidx。我认为如果谷歌还没有开发支持库,它会停止开发。因为混合的东西,你会遇到很多问题。
    • 迁移到 androidx 后错误:无法解析 ':CrushOnTube@debug/compileClasspath' 的依赖关系:无法解析 com.google.android.gms:play-services-base:[15.0.0, 16.0.0)。显示详细信息相同的错误
    • 无论我做什么这些错误都会出现错误:无法解决':CrushOnTube@debugAndroidTest/compileClasspath'的依赖关系:无法解析com.google.android.gms:play-services -ads-identifier:12.0.1
    猜你喜欢
    • 2019-11-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-08
    • 1970-01-01
    • 1970-01-01
    • 2019-11-02
    相关资源
    最近更新 更多