Fastlane: "Could not find release for version code to update changelog"

1,459

For those that are also using Flutter and facing the same issue, specify your apk or app bundle file path.

In my case, setting: aab: "../build/app/outputs/bundle/release/app-release.aab" fixed the problem

Share:
1,459
GGirotto
Author by

GGirotto

Updated on December 23, 2022

Comments

  • GGirotto
    GGirotto over 1 year

    I'm trying to build and release an Android build to PlayStore using Fastlane, but when I run the lane the output is:

    Could not find release for version code '6' to update changelog

    My Fastfile:

    default_platform(:android)
    
    platform :android do
      lane :release do
        gradle(
          task: "bundle",
          build_type: "Release",
        )
    
        upload_to_play_store(
          track: "internal",
          skip_upload_changelogs: true,
          skip_upload_apk: true,
          version_name: "2.0.0",
          version_code: 6,
        )
      end
    end