Default android workflow trying to use newer format version than supported

The default workflow yaml file that was generated using the add new app flow resulted in builds automatically failing due to version mismatching

---
format_version: '4'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: "*"
  workflow: primary
- pull_request_source_branch: "*"
  workflow: primary
workflows:
  deploy:
    steps:
    - activate-ssh-key@3.1.1:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@3.5.1: {}
    - cache-pull@1.0.0: {}
    - script@1.1.4:
        title: Do anything with Script step
    - install-missing-android-tools@1.1.0: {}
    - gradle-runner@1.7.6:
        inputs:
        - gradle_file: "$GRADLE_BUILD_FILE_PATH"
        - gradle_task: assembleRelease
        - gradlew_path: "$GRADLEW_PATH"
    - deploy-to-bitrise-io@1.3.6: {}
    - cache-push@1.1.4: {}
  primary:
    steps:
    - activate-ssh-key@3.1.1:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@3.5.1: {}
    - cache-pull@1.0.0: {}
    - script@1.1.4:
        title: Do anything with Script step
    - install-missing-android-tools@1.1.0: {}
    - gradle-runner@1.7.6:
        inputs:
        - gradle_file: "$GRADLE_BUILD_FILE_PATH"
        - gradle_task: assembleDebug
        - gradlew_path: "$GRADLEW_PATH"
    - deploy-to-bitrise-io@1.3.6: {}
    - cache-push@1.1.4: {}
app:
  envs:
  - opts:
      is_expand: false
    GRADLE_BUILD_FILE_PATH: build.gradle
  - opts:
      is_expand: false
    GRADLEW_PATH: "./gradlew"

Throws error

WARN[09:44:06] The bitrise.yml has a higher Format Version (4) than the bitrise CLI model's version (3). 
FATA[09:44:07] Failed to create bitrise config, error: This bitrise.yml was created with and for a newer version of bitrise CLI, please upgrade your bitrise CLI to use this bitrise.yml
1 Like

Thanks for reporting @scruffyfox!

Should be fixed by now - was an “early” deploy of a feature which should have only be deployed after this weekend’s updates. Rolled back the related change.

Can you test it again and let us know if you’d still see this issue?

And if someone would need a quickfix for a project generated during the issue, simply:

  1. Open the project on bitrise.io
  2. Open the Workflow Editor (Workflow tab)
  3. Switch to bitrise.yml mode
  4. And change the format_version: '4' to format_version: '3'

Save, and the config should work.