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

使用FlutterFire创建Firebase项目失败问题求助

Firebase项目创建失败:project_id包含无效字符

错误原因

你输入的项目ID Firebase-firststep-project 不符合Firebase的项目ID命名规则,核心问题是ID开头使用了大写字母。Firebase项目ID必须满足以下要求:

  • 仅使用小写字母(a-z)、数字(0-9)和连字符(-)
  • 不能以连字符开头或结尾
  • 长度控制在6到30个字符之间

解决方案

  1. 调整项目ID为合规格式,比如把开头的Firebase改为小写firebase,得到有效ID:firebase-firststep-project
  2. 重新执行创建命令:
    firebase projects:create firebase-firststep-project --json
    
    或者通过交互式流程重新输入正确ID:
    firebase projects:create
    

额外提示

创建前Firebase CLI会自动校验ID的格式与唯一性,若格式不符合要求会即时给出提示,可根据提示调整后再尝试。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.14 05:28:11