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

如何通过FASTLANE自动提交Android生产版本至Google Play审核?

解决Fastlane自动提交生产版本至Google审核的问题

问题根源

你的现有代码仅完成了从Internal Tests轨道到Production轨道的版本迁移,但没有触发Google Play的审核流程——默认情况下supply不会自动提交审核,必须显式配置相关参数。

解决方案

1. 补充supply的审核触发参数

在supply_params中添加submit_for_review: true,这是触发自动审核的核心参数。同时,需补充Google Play审核要求的必填信息(若未提前在控制台配置),比如内容分级、隐私政策链接等。

修改后的代码如下:

desc "Promote the current beta build to the production track and submit for review"
lane :production do
  version_codes = google_play_track_version_codes(track: "internal")
  version_code = version_codes.first

  supply_params = {
    track: "internal",
    track_promote_to: "production",
    version_code: version_code,
    # 关键参数:开启自动提交审核
    submit_for_review: true,
    # 以下为审核必填项,根据应用实际情况填写
    content_rating: {
      rating: "everyone", # 可选值:everyone, teen, mature_17+, adult_only
      descriptors: [] # 按需添加内容分级描述符,如violence_fantasy
    },
    privacy_policy_url: "https://your-app-privacy-policy-url.com",
    # 可选:配置多语言发布说明
    release_notes: {
      "en-US" => "Bug fixes and performance improvements."
    }
  }
  supply(supply_params)
end

2. 确认服务账号权限

确保Fastlane使用的Google Play服务账号拥有应用发布者或更高权限,可在Google Play Console的「用户和权限」页面检查配置——权限不足会导致无法提交审核。

3. 检查控制台必填项完整性

如果执行后仍失败,登录Google Play Console确认是否存在未完成的必填配置:比如应用内容分级、目标受众设置、隐私政策等,这些信息未完善的话,即使Fastlane配置正确也无法触发审核。

执行效果

修改后运行fastlane production,Fastlane会自动完成:

  • 从Internal轨道获取最新版本号
  • 将版本迁移至Production轨道
  • 提交该版本至Google Play审核队列

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.02 19:43:21