android - 无法使用 Fastlane 上传 aab/apk 来玩商店
问题描述
我有一个想要使用 Fastlane 上传到 Play 商店的 android 应用程序。当我使用命令上传时fastlane internal
,我收到以下错误:
28 $ fastlane internal
29 [19:55:02]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
30 [19:55:02]: Sending anonymous analytics information
31 [19:55:02]: Learn more at https://docs.fastlane.tools/#metrics
32 [19:55:02]: No personal or sensitive data is sent.
33 [19:55:02]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
34 [19:55:02]: ---------------------------
35 [19:55:02]: --- Step: opt_out_usage ---
36 [19:55:02]: ---------------------------
37 [19:55:02]: Disabled upload of used actions
38 [19:55:02]: ------------------------------
39 [19:55:02]: --- Step: default_platform ---
40 [19:55:02]: ------------------------------
41 [19:55:02]: Driving the lane 'android internal'
42 [19:55:02]: ----------------------------------
43 [19:55:02]: --- Step: upload_to_play_store ---
44 [19:55:02]: ----------------------------------
45 +-------------------------+-----------------------------------------------+
46 | Summary for supply 2.135.2 |
47 +-------------------------+-----------------------------------------------+
48 | track | internal |
49 | apk | app/build/outputs/apk/release/app-release.apk |
50 | package_name | com.myapp.andriod |
51 | release_status | completed |
52 | json_key | /play-store-config.json |
53 | skip_upload_apk | false |
54 | skip_upload_aab | false |
55 | skip_upload_metadata | false |
56 | skip_upload_changelogs | false |
57 | skip_upload_images | false |
58 | skip_upload_screenshots | false |
59 | validate_only | false |
60 | check_superseded_tracks | false |
61 | timeout | 300 |
62 | deactivate_on_promote | true |
63 +-------------------------+-----------------------------------------------+
64 +------------------+------------------+
65 | Lane Context |
66 +------------------+------------------+
67 | DEFAULT_PLATFORM | android |
68 | PLATFORM_NAME | android |
69 | LANE_NAME | android internal |
70 +------------------+------------------+
71 [19:55:02]: Google Api Error: applicationNotFound: No application was found for the given package name. - No application was found for the given package name.
72 +------+----------------------+-------------+
73 | fastlane summary |
74 +------+----------------------+-------------+
75 | Step | Action | Time (in s) |
76 +------+----------------------+-------------+
77 | 1 | opt_out_usage | 0 |
78 | 2 | default_platform | 0 |
79 | | upload_to_play_store | 0 |
80 +------+----------------------+-------------+
81 [19:55:02]: fastlane finished with errors
82 [!] Google Api Error: applicationNotFound: No application was found for the given package name. - No application was found for the given package name.
86 ERROR: Job failed: command terminated with exit code 1
此问题的一般修复方法是在 Play 管理中心创建项目,然后手动上传 APK。我已经通过手动上传 APK 在 Play 控制台中创建了应用程序,但我仍然遇到同样的错误。
解决方案
推荐阅读
- reactjs - 如何使用咖啡在 Rails 中使用 React?
- swiftui - SwiftUI - 对象显示在我的 HStack 之外
- python - 在从字典中拆分列表中的字符串后,Python 分别计算出现次数以及出现次数最多的元素
- azure - 回复 url 中间的 Azure AD 通配符((不是结尾或乞求))不起作用
- python - 如何计算每个大陆的首都城市数量?
- php - Laravel 护照和社交名媛 facebook 登录/认证
- docker - docker-compose 是否构建图像并运行容器?
- linux - 如何在 AOSP 根目录中添加包含文件的文件夹?
- python - 我的 Minimax 算法出了什么问题?
- r - 使用闪亮的输入作为列名,如果为空则使用字符串