简体   繁体   English

在 Google Play 控制台上传我的 React Native/Expo 应用程序时出错

[英]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.

相关问题 (React Native) 如何将应用签名密钥上传到 Google Play 控制台? - (React Native) How to uploading App Signing Key to Google Play Console? Google Play 控制台未在来自 React Native expo 的捆绑包中正确检测到我的 SDK 版本 - Google play console not detecting my SDK version correctly in bundles from react native expo 世博会:com.segment.analytics.android:analytics 错误,同时将我的应用程序提交到 Google Play 控制台 - Expo : com.segment.analytics.android:analytics error while submitting my app to Google Play Console 将 React Native 应用程序上传到 Google 控制台 [Expo Ejected] - Upload React Native app to Google Console [Expo Ejected] 将 Android App Bundle 上传到 Google Play 控制台 - 密钥签名错误 - Uploading Android App Bundle to Google Play Console - key signing error React Native Expo - Google Play Console 告诉我我要求我不要求的权限 - React native Expo - Google Play Console tells me i ask for permissions i don't 将proguard文件上传到Google Play控制台时出错 - Error uploading proguard file to a Google Play Console 在Google Play开发者控制台中上传APK时出错 - Error uploading APK in Google Play Developer Console 将裸工作流 expo React-Native 应用程序发布到 Google Play,该应用程序之前在托管工作流中发布 - Publishing a bare-workflow expo React-Native app to Google Play which was previously published in the managed workflow React Native-未优化的APK,可将我的应用提交到Google Play - React Native - Unoptimized APK to submit my app to Google Play
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM