[英]Error at uploading my React Native/Expo app on Google Play Console
Months ago I uploaded an alpha app that I created using Expo on React Native.几个月前,我上传了一个我在 React Native 上使用 Expo 创建的 alpha 应用程序。 I build the app with the version 1.0.0 in app.json.
我使用 app.json 中的 1.0.0 版本构建应用程序。 The people involved with the project tested it, I improved it with some other things and we concluded it's ready to go to production.
参与该项目的人员对其进行了测试,我用其他一些东西对其进行了改进,我们得出结论,它已准备好投入生产。
The thing is Google Play Console returns error when I try to upload it.问题是当我尝试上传时,Google Play Console 返回错误。 According to the message (number 2 in the below print), it says (in Portuguese) "You already have an APK or Android App Bunble with version 1 code. Use another code".
根据消息(下面打印中的数字 2),它说(葡萄牙语)“您已经有一个带有版本 1 代码的 APK 或 Android App Bunble。使用另一个代码”。 What does that mean?
这意味着什么?
Basically, I uploaded it, improved it and now, want to upload it again with the new things.基本上,我上传了它,改进了它,现在,想用新东西再次上传它。
I tried to upload it in alpha again, beta, build the app again with version 1.1.0 in app.json but, same error message.我尝试再次以 alpha、beta 版上传它,在 app.json 中使用 1.1.0 版再次构建应用程序,但是,同样的错误消息。 Has this version 1 code nothing to do with the version in app.json?
此版本 1 代码与 app.json 中的版本无关吗?
In the below print, we can see the main panel, where there is just one release, which is the alpha one.在下面的打印中,我们可以看到主面板,其中只有一个版本,即 alpha 版本。 Any help would be great.
任何帮助都会很棒。 Thanks for now.
暂时谢谢。
------------------ EDIT ----------------------- - - - - - - - - - 编辑 - - - - - - - - - - - -
According to an answer, I thought it would be good to put the print of app.json.根据一个答案,我认为把app.json的打印出来会很好。 I hid some private fields.
我隐藏了一些私人领域。 As you can see, the version is 1.0.0, but I tried building a 1.1.0 and 2.0.0 version app.
如您所见,版本为 1.0.0,但我尝试构建 1.1.0 和 2.0.0 版本的应用程序。 None of them solved the problem.
他们都没有解决问题。
seems like your new app has a versionCode
that conflicts with the existing app.似乎您的新应用程序的
versionCode
与现有应用程序冲突。
go to YOUR_APP/android/app/build.gradle
and search for versionCode
.转到
YOUR_APP/android/app/build.gradle
并搜索versionCode
。 increase the number by 1, recompile your .aab
or .apk
and upload again.将数字增加 1,重新编译您的
.aab
或.apk
并再次上传。
UPDATED更新
versionCode
is missing. versionCode
丢失。 Can you add it like this?可以这样加吗?
“android”: {
“versionCode”: 2,
...
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.