评估项目':@ react-native-firebase_auth'时发生问题

时间:2019-12-16 08:22:34

标签: react-native firebase-realtime-database firebase-authentication react-native-android react-native-firebase

我是React Native的新手,我已经使用npm安装了firebase auth,例如: npm add @react-native-firebase/auth,此处没有C:\ Users \ Arpita Jha \ Desktop \ expert \ test \ node_modules @ react-native-firebase \ auth \ android \ build.gradle这样的目录。 现在我正面临这个问题:


1: Task failed with an exception.
-----------
* Where:
Build file 'C:\Users\Arpita Jha\Desktop\expert\test\node_modules\@react-native-firebase\auth\android\build.gradle' line: 60

* What went wrong:
A problem occurred evaluating project ':@react-native-firebase_auth'.
> Project with path ':@react-native-firebase_app' could not be found in project ':@react-native-firebase_auth'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':@react-native-firebase_auth'.
> compileSdkVersion is not specified.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 17s```



2 个答案:

答案 0 :(得分:1)

yarn add @react-native-firebase/app

答案 1 :(得分:0)

更新 卸载的模块使用npm安装,然后使用yarn重新安装。那解决了我的问题。