You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行flutterfire configure时触发PathNotFoundException,找不到android/build.gradle

FlutterFire Configure 抛出 PathNotFoundException:找不到 android/build.gradle 文件

执行flutterfire configure为Flutter项目配置Firebase时,流程中途失败,报错PathNotFoundException,提示找不到android目录下的build.gradle文件。尽管Android、iOS、macOS、Web和Windows平台的Firebase配置已成功注册,该错误仍会出现。

复现步骤

flutter create example
cd example
dart pub global activate flutterfire_cli
flutterfire configure

环境参数

  • Firebase Core 版本:3.9.0
  • Flutter 版本:3.28.0-2.0.pre.38577 • channel master
  • 受影响平台:Android、iOS、macOS、Web、Windows

已尝试的解决方法

  • 降级Flutter SDK版本,但这并非可行的长期方案

错误截图

内容的提问来源于stack exchange,提问作者Ethical Aniruddha

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 08:25:54