【问题标题】:A problem occurred evaluating project ':@react-native-firebase_auth'评估项目“:@react-native-firebase_auth”时出现问题
【发布时间】: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_nameyarn add package_name 以供将来参考

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


【解决方案1】:

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

【讨论】:

    【解决方案2】:
    yarn add @react-native-firebase/app
    

    【讨论】:

      猜你喜欢
      • 2022-01-07
      • 1970-01-01
      • 1970-01-01
      • 2023-02-13
      • 2021-10-07
      • 1970-01-01
      • 2020-08-11
      • 2021-05-25
      • 2022-08-13
      相关资源
      最近更新 更多