【问题标题】:A problem occurred evaluating root project 'firebase_auth'. > Could not find the firebase_core FlutterFire plugin评估根项目“firebase_auth”时出现问题。 > 找不到 firebase_core FlutterFire 插件
【发布时间】:2021-10-07 01:53:33
【问题描述】:

一切都很顺利。我尝试将 google_mobile_ads 包添加到 pubspec.yaml,添加此包后,每当我运行应用程序时,它都会说 minSdk 版本不应低于 19。

What went wrong:
Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:google_mobile_ads] D:\Academic\My Work\Software Projects\My Mates\my_mates\build\google_mobile_ads\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
  or increase this project's minSdk version to at least 19,
  or use tools:overrideLibrary="io.flutter.plugins.googlemobileads" to force usage (may lead to runtime failures)

所以我将 android/app/build.gradle 中的 minSdkVersion 从 16 更新到 19。现在每当我运行代码时都会显示

A problem occurred evaluating root project 'firebase_auth'.
Could not find the firebase_core FlutterFire plugin, have you added it as a dependency in your pubspec?

虽然我已将 firebase_auth(^3.0.1)firebase_core(^1.4.0) 更新到最新版本,但没有任何效果。

看到许多相关问题却没有解决方案,这很奇怪。遇到同样问题的人请分享如何克服它并成功重建应用程序。

【问题讨论】:

    标签: android flutter gradle firebase-authentication sdk


    【解决方案1】:

    在终端中运行flutter clean

    之后,再次运行flutter packages get 以在您的应用程序中下载最新的包。

    【讨论】:

      猜你喜欢
      • 2022-01-07
      • 2020-04-08
      • 2021-06-28
      • 2020-10-17
      • 2021-04-09
      • 1970-01-01
      • 1970-01-01
      • 2020-08-11
      • 2021-05-25
      相关资源
      最近更新 更多