flutterfastlane

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


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


Solution

  • 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