【发布时间】:2020-04-08 16:33:47
【问题描述】:
我是 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```
【问题讨论】:
-
尝试使用 npm install @react-native-firebase/auth
-
我试过了,但没用。我仍然遇到同样的错误。
-
它是
npm install package_name或yarn add package_name以供将来参考
标签: react-native firebase-realtime-database firebase-authentication react-native-android react-native-firebase