Fastlane 和 React-Native:Google Api 错误:无效请求 - 未配置访问

     2023-05-07     260

关键词:

【中文标题】Fastlane 和 React-Native:Google Api 错误:无效请求 - 未配置访问【英文标题】:Fastlane & React-Native: Google Api Error: Invalid request - Access Not Configured 【发布时间】:2020-10-03 10:51:47 【问题描述】:

在运行此程序后使用 Fastlane 和 React-Native 时导致以下错误的原因:

fastlane beta

[22:36:39]: Google Api Error: Invalid request - Access Not Configured. Google Play Developer API has not been used in project xxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/androidpublisher.googleapis.com/overview?project=xxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

+------+----------------------+-------------+
|             fastlane summary              |
+------+----------------------+-------------+
| Step | Action               | Time (in s) |
+------+----------------------+-------------+
| 1    | default_platform     | 0           |
| 2    | bundleRelease        | 18          |
| ????   | upload_to_play_store | 1           |
+------+----------------------+-------------+

[22:36:39]: fastlane finished with errors

[!] Google Api Error: Invalid request - Access Not Configured. Google Play Developer API has not been used in project xxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/androidpublisher.googleapis.com/overview?project=xxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

这就是我的 Fastfile:

platform :android do
  desc "Runs all the tests"
  lane :test do
    gradle(task: "test")
  end

  lane :beta do
  # Adjust the `build_type` and `flavor` params as needed to build the right APK for your setup
  gradle(
    task: 'bundle',
    build_type: 'Release'
  )
  upload_to_play_store(track: 'beta',
  skip_upload_apk: true,
     aab: 'app/build/outputs/bundle/release/app-release.aab'
  )
  end

  desc "Deploy a new version to the Google Play"
  lane :deploy do
    gradle(task: "clean assembleRelease")
    upload_to_play_store
  end
end

也为项目启用了Google Play Developer API

这里有谁能快速帮我解决这个问题吗?提前致谢!

【问题讨论】:

【参考方案1】:

您可以做的但可能不是您首选的解决方案是在您的 upload_to_play_store 命令中包含参数“json_key_data”。

更多信息在这里:https://docs.fastlane.tools/actions/upload_to_play_store/

【讨论】:

使用 fastlane 截取我的 React-Native 应用程序

】使用fastlane截取我的React-Native应用程序【英文标题】:TakingscreenshotsofmyReact-Nativeappusingfastlane【发布时间】:2017-12-2215:41:46【问题描述】:致力于发布我的第一个RN应用。我正在使用快车道让生活更轻松。按照本指南获取快照:s... 查看详情

从 Fastlane 中的通用平台导入和调用特定平台的通道

...ane【发布时间】:2016-06-2820:13:08【问题描述】:我有一个react-native应用程序,ios和android目录都在一个公共目录中。我希望能够独立发布(执行通道)iOS或Android,所以我在每个平台目录中设 查看详情

Jenkins 运行 fastlane 脚本时未安装 Yarn

...anescript【发布时间】:2019-09-1818:09:27【问题描述】:我有react-native移动项目,我为ios和android创建了fastlane脚本来构建和推送应用程序。如果我从终端手动运行脚本,它们可以正常工作。但是现在,我想从Jenkins运行它们。我在mac... 查看详情

未找到 SDK 位置且无法加载命令 fastlane

...时间】:2021-07-2400:31:43【问题描述】:我尝试在Mac上构建react-native应用程序。我安装了Java、androidstudio等。有这个问题:bundler:failedtoloadcommand:fastlaneandSDKlocationn 查看详情

Fastlane,部署 iOS,致命错误 YogaKit.modulemap not found

...】:2021-11-1800:35:50【问题描述】:我想使用Fastlane将我的react-native应用程序部署到TestFlight,我得到以下错误编译main.m致命错误:模块映射文件\'/Users/am 查看详情

IOS UI 测试:如何使用 fastlane 快照通过代码关闭一系列系统警报(麦克风访问)

...】:2019-05-2407:32:03【问题描述】:我使用macmojave10.14.3和react-native版本-0.59.1,fast 查看详情

fastlane 抓屏和快照

】fastlane抓屏和快照【英文标题】:fastlanescreengrabandsnapshot【发布时间】:2016-07-2420:10:53【问题描述】:我正在使用fastlane工具(https://fastlane.tools)自动为我的iOS和Android应用程序进行所有屏幕截图。该工具运行良好,我很满意。我... 查看详情

自动化打包之fastlane--代码签名和项目配置(代码片段)

自动化打包之fastlane–(1)研究之必须提前了解的几点自动化打包之fastlane–(2)fastlaneinit图文教程自动化打包之fastlane–(3)安装fir插件图文教程自动化打包之fastlane–(4)安装其他插件自动化打包之fastlane–(5)自动打包到蒲公英自动化... 查看详情

如何结合 arc diff 和 fastlane?

】如何结合arcdiff和fastlane?【英文标题】:Howtocombinearcdiffandfastlane?【发布时间】:2021-08-2012:40:56【问题描述】:arcdiff需要消息和提交的描述,但是在运行fastlane脚本时,命令行不允许您输入消息。有没有人尝试过将奥术师+快车... 查看详情

带有 Fastlane 和 GitHub Actions 的 Android CI/CD:在 master 分支中找不到“fastlane”命令

】带有Fastlane和GitHubActions的AndroidCI/CD:在master分支中找不到“fastlane”命令【英文标题】:AndroidCI/CDwithFastlaneandGitHubActions:"fastlane"commandnotfoundatmasterbranch【发布时间】:2021-05-2418:19:13【问题描述】:我正在尝试使用GithubActi... 查看详情

Realm.js 和 Fastlane 集成

】Realm.js和Fastlane集成【英文标题】:Realm.jsandFastlaneintegration【发布时间】:2019-03-1119:26:43【问题描述】:我正在尝试为我正在处理的reactnative项目实施fastlane以实现持续交付。但是我不能让Realm.js玩得很好。下面的错误最终不允... 查看详情

更改特定目标 Fastlane 的版本和内部版本号

】更改特定目标Fastlane的版本和内部版本号【英文标题】:ChangingversionandbuildnumberforaspecifictargetFastlane【发布时间】:2021-04-2915:19:39【问题描述】:我正在尝试将Fastlane实现到一个包含30多个应用程序的Xcode项目中。此时我被困在为... 查看详情

重用 Fastlane 匹配来加密其他凭据和 android 密钥存储

】重用Fastlane匹配来加密其他凭据和android密钥存储【英文标题】:ReuseFastlanematchforencryptingothercredentialsandandroidkeystores【发布时间】:2019-05-0810:17:07【问题描述】:我正在使用Fastlane匹配来管理我的iOS代码签名。有没有办法使用相... 查看详情

Fastlane:无法使用“match”命令生成的 p12 文件

】Fastlane:无法使用“match”命令生成的p12文件【英文标题】:Fastlane:cannotusep12filegeneratedby"match"command【发布时间】:2016-08-2920:52:57【问题描述】:我正在配置Fastlane和他们的match命令来生成我的证书和配置。按照fastlane文... 查看详情

如何在使用 Xcode 自动代码签名的同时使用 Fastlane 和 Crashlytics 进行构建?

】如何在使用Xcode自动代码签名的同时使用Fastlane和Crashlytics进行构建?【英文标题】:HowtouseFastlaneandCrashlyticstobuildwhileusingXcodeautomaticcodesigning?【发布时间】:2018-04-2612:06:13【问题描述】:我们可以在Xcode上存档构建并通过Fabric桌... 查看详情

如何手动将现有的配置文件和证书添加到 fastlane 匹配?

】如何手动将现有的配置文件和证书添加到fastlane匹配?【英文标题】:HowdoImanuallyaddexistingprovisioningprofilesandcertificatestofastlanematch?【发布时间】:2016-05-0105:41:56【问题描述】:我在产品中有大量现有应用,我想在fastlanematch中使... 查看详情

使用 fastlane 上传到 S3

】使用fastlane上传到S3【英文标题】:UploadingtoS3withfastlane【发布时间】:2016-08-2602:55:45【问题描述】:我一直在使用fastlane将应用程序上传到曲棍球和testflight。我也想用于S3并检查他们的文档。我对S3的了解有限。https://github.com/fa... 查看详情

Fastlane Match 无法验证证书和配置文件

】FastlaneMatch无法验证证书和配置文件【英文标题】:FastlaneMatchfailstoverifycertificatesandprofiles【发布时间】:2020-08-0717:57:14【问题描述】:我正在尝试运行fastlanematchappstore。它成功解密了证书存储库,表示它成功登录到AppleDevPortal... 查看详情