android apk build 'increment_version_code' 中的 Fastlane 错误

Posted

技术标签:

【中文标题】android apk build \'increment_version_code\' 中的 Fastlane 错误【英文标题】:Fastlane error in android apk build 'increment_version_code'android apk build 'increment_version_code' 中的 Fastlane 错误 【发布时间】:2018-04-12 18:10:48 【问题描述】:

我在将签名 apk 构建为 assembleRelease apk 的 fastlane 中出现错误,我想在 playstore 上部署更新,但是当我触发 fastlane 命令时,我收到 错误增量版本代码

Shubhams-MacBook-Air:ProjectPath shubhamsejpal$ fastlane beta
[✔] ???? 
[23:33:51]: fastlane detected a Gemfile in the current directory
[23:33:51]: however it seems like you don't use `bundle exec`
[23:33:51]: to launch fastlane faster, please use
[23:33:51]: 
[23:33:51]: $ bundle exec fastlane beta
[23:33:51]: 
[23:33:51]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[23:33:51]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables
[23:33:52]: ----------------------------------------
[23:33:52]: --- Step: Verifying fastlane version ---
[23:33:52]: ----------------------------------------
[23:33:52]: Your fastlane version 2.90.0 matches the minimum requirement of 2.64.0  ✅
[23:33:52]: ------------------------------
[23:33:52]: --- Step: default_platform ---
[23:33:52]: ------------------------------
[23:33:52]: Driving the lane 'android beta' ????
+------------------+--------------+
|          Lane Context           |
+------------------+--------------+
| DEFAULT_PLATFORM | android      |
| PLATFORM_NAME    | android      |
| LANE_NAME        | android beta |
+------------------+--------------+
[23:33:52]: Could not find action, lane or variable 'increment_version_code'. Check out the documentation for more details: https://docs.fastlane.tools/actions

+------+---------------------+-------------+
|             fastlane summary             |
+------+---------------------+-------------+
| Step | Action              | Time (in s) |
+------+---------------------+-------------+
| 1    | Verifying fastlane  | 0           |
|      | version             |             |
| 2    | default_platform    | 0           |
+------+---------------------+-------------+

[23:33:52]: fastlane finished with errors

[!] Could not find action, lane or variable 'increment_version_code'. Check out the documentation for more details: https://docs.fastlane.tools/actions
[23:33:52]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables

【问题讨论】:

【参考方案1】:

你必须添加这个插件

fastlane add_plugin increment_version_code

reference url

【讨论】:

在添加插件后,它给了[!] Impossible to find the version code with the specified properties ? 这里一样,“无法找到具有指定属性的版本代码”。

以上是关于android apk build 'increment_version_code' 中的 Fastlane 错误的主要内容,如果未能解决你的问题,请参考以下文章

如何在Android build system中编译生成apk-CSDN论坛

构建apk时Android Native Build问题错误

Android Studio中签名apk时遇到的Error Building Android APK - duplicate v4 widget

android studio3.0.1 的build下没有generate signer apk 选项?

tns build android 《app-debug.apk》包太大

React native TouchableOpacity onPress 在 Android Build (APK) 上不起作用