React native 任务';的执行失败:react native firebase:compileDebugJavaWithJavac';

React native 任务';的执行失败:react native firebase:compileDebugJavaWithJavac';,react-native,react-native-firebase,React Native,React Native Firebase,在我的React-Native0.60.4应用程序中,我正在尝试使用React-Native firebase,除了React-Native链接,我已经做了一切,因为最新版本的React-Native不支持它。当我发出命令react native run android,它显示了react native firebase的节点模块中的许多错误。我猜这是因为版本冲突。下面是一个长错误: 以下是我的应用程序生成/渐变文件依赖项: 依赖项{ 实现文件树(目录:“libs”,包括:[“*.jar”]

在我的React-Native
0.60.4
应用程序中,我正在尝试使用React-Native firebase,除了
React-Native链接
,我已经做了一切,因为最新版本的React-Native不支持它。当我发出命令
react native run android
,它显示了
react native firebase
的节点模块中的许多错误。我猜这是因为版本冲突。下面是一个长错误:

以下是我的应用程序生成/渐变文件依赖项:

依赖项{
实现文件树(目录:“libs”,包括:[“*.jar”])
实现“com.facebook.react:react native:+”
实现“com.google.firebase:firebase核心:16.0.9”
实现“com.google.firebase:firebase-firestore:19.0.0”
实现“com.google.firebase:firebase消息传递:18.0.0”
//实现“com.google.firebase:firebase函数:17.0.0”
//实现“com.google.firebase:firebase分析:16.5.0”
//实现“com.google.firebase:firebase广告:17.2.1”
//实现“com.google.android.gms:play服务度量api:16.5.0”
//实现“com.google.firebase:firebase邀请:17.0.0”
//实现“com.google.firebase:firebase iid:18.0.0”
//实现“com.google.firebase:firebase配置:17.0.0”
//实现“com.google.firebase:firebase性能:17.0.0”
//Firebase依赖项
实现“com.google.android.gms:play services base:16.1.0”
实现“com.google.android.gms:play services gcm:16.1.0”
实现'com.android.support:multidex:1.0.3'
如果(启用Hermes){
def hermesPath=“../../node_modules/hermesvm/android/”;
调试实现文件(hermesPath+“hermes debug.aar”)
releaseImplementation文件(hermesPath+“hermes release.aar”)
}否则{
jscFlavor的实现
}
}
任务copyDownloadableDepsToLibs(类型:Copy){
从configurations.compile
进入“自由行”
}
应用于:文件(“../../node_modules/@react native community/cli platform android/native_modules.gradle”);ApplyActiveModulesBuildGradle(项目)
应用于:“../../node_modules/react native vector icons/fonts.gradle”

应用插件:“com.google.gms.googleservices”
我认为您需要链接react原生firebase库。 此外,您也可以在此处参考firebase的文档或运行npx jetify

只需从项目根目录中重新安装React Native Firebase即可,其中节点_模块位于该目录中


在这之后,它的100%工作。

也不能使用thread add@react native firebase/firestore命令@AbhisheksutariyayaThread也适用于windows。无论如何,我尝试了npm安装。但还是一样。安装后会出现以下错误:在Project中找不到路径为“:@react-native-firebase_app”的项目:@react-native-firebase_firestore'@AbhishekSutariyaI不知道为什么,但这对我有效。
npm install --save @react-native-firebase/app