【问题标题】:Flutter appbundle version code error. Version code 20220304 has already been used. Try another version codeFlutter appbundle 版本代码错误。版本代码 20220304 已被使用。尝试另一个版本代码
【发布时间】:2023-01-08 06:10:23
【问题描述】:

我尝试为 google play 构建新版本,所以我将文件 pubspec.yaml 中的版本从 0.1.1+20220304 更改为 0.1.4+20220307,但上传后,GPlay 控制台返回错误:Version code 20220304 has already been used. Try another version code. 我在任何地方都没有硬编码号码20220304。 我直接使用来自 pubspec.yaml 的应用程序版本:version: 0.1.4+20220307 为什么在构建工具期间会得到旧的应用程序版本?

【问题讨论】:

    标签: flutter android-studio build android-app-bundle


    【解决方案1】:

    只需要从项目根目录中删除build文件夹。

    【讨论】:

      【解决方案2】:

      在构建你的 apk/bundle 之前运行flutter clean

      【讨论】:

        猜你喜欢
        • 2021-09-04
        • 2022-01-03
        • 1970-01-01
        • 2019-10-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多