提问者:小点点

将Flutter Apk上传到Play商店时版本代码错误


Play控制台给出错误“使用不同的版本代码”。


共1个答案

匿名用户

我也面临着同样的问题,后来知道我的版本代码是在我的build. gradle文件中静态定义的。

去Android-

要从那里更改它,请检查您的build. gradle文件,版本Code是来自flutterVersionCode还是静态定义

defaultConfig {
   //...
    versionCode flutterVersionCode.toInteger() //See this line, is it same as mine or you have any static version Code set there which is causing the issue.
    versionName flutterVersionName
}