Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在我的项目中添加firebase插件后出错_Firebase_Nativescript Angular - Fatal编程技术网

在我的项目中添加firebase插件后出错

在我的项目中添加firebase插件后出错,firebase,nativescript-angular,Firebase,Nativescript Angular,我正在将firebase插件添加到我的nativescript angular项目中,然后运行该项目,它显示以下错误: 错误:任务的执行失败:应用程序:processDebugManifest'>清单合并失败:属性application@appComponentFactory[com.android.support:support compat:28.0.0]AndroidManifest.xml:22:18-91中的value=(android.support.v4.app.CoreComp

我正在将firebase插件添加到我的nativescript angular项目中,然后运行该项目,它显示以下错误:

  • 错误:任务的执行失败:应用程序:processDebugManifest'>清单合并失败:属性application@appComponentFactory[com.android.support:support compat:28.0.0]AndroidManifest.xml:22:18-91中的value=(android.support.v4.app.CoreComponentFactory)也出现在[androidx.core:core:1.0.0]AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory)中。建议:在AndroidManifest.xml:17:2-38:16处的元素中添加“tools:replace=“android:appComponentFactory””以覆盖

请在project app.gradle文件中添加以下代码

比如:-App\u 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' 
 }
}