问题描述
我在Google Play商店中有一个应用。目前只有一个上载。
无论天气如何,版本号均为1、2或3。第一种发布方式为版本码1,即版本码2。
我不知道问题出在哪里,也许我必须同步build.gradle,我听说过一些关于ppl的话题,但是我不确定100%如何做?
另外,如果我制作了一个新的“应用程序”并将其上传到此,则该错误不会显示op,这可能是因为在该“应用程序”上没有其他具有该名称或更高名称的应用程序版本。
另外,有大约300个不同的build.gradle文件,我正在谈论的是目录下的一个文件
ApplicatioName\myApplication\build.gradle
这是build.gradle:
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 16
targetSdkVersion 30
versionCode 2
versionName "2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
我该怎么办?
解决方法
至少在我的经验中,在Flutter中,您不需要在struct S {
char *p;
};
// approach 1: two overload functions with duplicate body
auto extract(S &input) -> int * {
return reinterpret_cast<int *>(input.p + 12);
}
auto extract(const S &input) -> const int * {
return reinterpret_cast<const int *>(input.p + 12);
}
// approach 2: macro
#define macro_extract(input) (reinterpret_cast<int *>(input.p + 12))
中修改版本代码。假设您的pubspec.yaml
标签为version
,您的android版本代码将为1,而您的用户可见版本名称为1.0.0。例如,您可以将其更改为version: 1.0.0+1
,这应该可以解决您的问题。
编辑:显然,也可以重建。