我们有“react-native-firebase”:“4.2.0”,在安装 npm 模块并尝试运行应用程序之后,我们遇到了这个问题
失败:构建失败,出现异常。
出了什么问题: 无法解析配置“:app:debugCompileClasspath”的所有文件。
Could not find firebase-auth.aar (com.google.firebase:firebase-auth:15.1.0). Searched in the following locations: https://jcenter.bintray.com/com/google/firebase/firebase-auth/15.1.0/firebase-auth-15.1.0.aar Could not find firebase-analytics-impl.aar (com.google.firebase:firebase-analytics-impl:15.0.2). Searched in the following locations: https://jcenter.bintray.com/com/google/firebase/firebase-analytics-impl/15.0.2/firebase-analytics-impl-15.0.2.aar Could not find firebase-common.aar (com.google.firebase:firebase-common:15.0.1). Searched in the following locations: https://jcenter.bintray.com/com/google/firebase/firebase-common/15.0.1/firebase-common-15.0.1.aar Could not find firebase-common.aar (com.google.firebase:firebase-common:15.0.1). Searched in the following locations: https://jcenter.bintray.com/com/google/firebase/firebase-common/15.0.1/firebase-common-15.0.1.aar
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。
在 https://help.gradle.org 获得更多帮助
最佳答案
你试过吗
react-native link react-native-firebase ?
关于android - react-native firebase react native 应用程序构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50563989/