【问题标题】:fastlane: [!] Google Api Error: Invalid request - Package not found: com.example.todofastlane:[!] Google Api 错误:无效请求 - 找不到包:com.example.todo
【发布时间】:2021-11-03 11:24:52
【问题描述】:

我正在为我的应用程序使用 React-native。我已将我的名字命名为reactamplify。我想将我的应用部署到 Google Play 商店。对于自动化部署,我第一次使用fastlane。我找到了这个documentation,按照步骤提供API grant access。在我的 React 本机应用程序中,我导航到 android 文件夹,然后运行此命令 fastlane init。给 json_key_file 路径我下载的 auth json 文件。但我对包名感到困惑。我在 vscode com.reactamplify 中搜索我的应用名称,将它们替换为 com.example.todo。然后运行android文件夹fastlane supply init,我得到这个错误:[!] Google Api Error: Invalid request - Package not found: com.example.todo.我真的不知道如何修复它:(。真的失去了TBH。

当我运行fastlane supply 时。我得到了这张图片

PS:如果有人用图片给我举个例子,那就太棒了

【问题讨论】:

    标签: android google-play fastlane


    【解决方案1】:

    我找到了原因。我需要手动将至少一个版本上传到 Google Play 商店应用程序。这就是我收到包名错误的原因。

    【讨论】:

    • 我在执行expo upload:android 时收到了完全相同的错误消息。 “上传至少一个版本”是什么意思?这正是我想要做的。
    • 你有expo账号吗?如果是,则运行此命令expo build:android 。它将在您的 expo 帐户中构建 apk。然后您将下载apk 文件到您的笔记本电脑/台式机。然后转到play.google.com/console/developers 网站并在生产中上传您的apk res.cloudinary.com/drewzxzgc/image/upload/v1635404261/…
    • 是的。您必须手动上传。我遵循这个设置:docs.fastlane.tools/getting-started/android/setup 和教程:dev.to/jeiman/…。我知道一开始很混乱。
    • 这也是您必须执行的另一个重要步骤。 reactnative.dev/docs/signed-apk-android 否则您无法在 Play-store 中手动上传您的 apk 版本。它会在 play-store 中显示错误
    • 仔细阅读这三个链接并确保您阅读每一行?。有时我很不耐烦地阅读所有内容并试图让事情变得更快,这导致了我的时间。
    【解决方案2】:

    就我而言,我删除了 fastlane 文件夹,然后再次运行以下命令:

    fastlane supply init
    

    【讨论】:

      猜你喜欢
      • 2020-10-03
      • 1970-01-01
      • 2020-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-23
      • 1970-01-01
      相关资源
      最近更新 更多