【问题标题】:Error after add firebase plugin in my project在我的项目中添加 firebase 插件后出错
【发布时间】:2019-08-23 13:28:28
【问题描述】:

我在我的 nativescript angular 项目中添加了 firebase 插件,然后运行它显示的项目,错误如下:

  • 出了什么问题:任务 ':app:processDebugManifest' 执行失败。 > 清单合并失败:来自 [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 的属性 application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) 也存在在 [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory)。建议:将 'tools:replace="android:appComponentFactory"' 添加到 AndroidManifest.xml:17:2-38:16 的元素以覆盖。

【问题讨论】:

    标签: firebase nativescript-angular


    【解决方案1】:

    请在您的项目 app.gradle 文件中添加以下代码。

    喜欢:- App_resources -> Android -> app.gradle.

    代码:-

    configurations.all { 
     resolutionStrategy { 
       force 'com.google.android.gms:play-services-gcm:16.1.0' 
       force 'com.google.android.gms:play-services-base:16.1.0' 
       force 'com.google.firebase:firebase-core:16.0.9' 
       force 'com.google.firebase:firebase-messaging:18.0.0' 
     }
    }
    

    【讨论】:

      猜你喜欢
      • 2019-07-09
      • 2019-10-13
      • 2020-07-26
      • 1970-01-01
      • 2019-03-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多