android - React native Expo 版本代码 1 已被使用。尝试其他版本代码

标签 android react-native expo

更新我的应用程序后,我试图将我的 expo 应用程序上传到 playstore,但一次又一次地出错。我更改了 app.json 中的版本 版本": "2.0.0" 也试试这个 版本": "1.0.1" version": "1.0.2" 。我不知道为什么它会显示这个错误。
回答
ios.buildNumber 和 android.versionCode 区分应用程序的不同二进制文件。确保为您上传到 App Store 或 Google Play Store 的每个构建增加这些。

最佳答案

您需要增加 android versionCode 和 iOS buildNumber,而不是版本字符串。

"ios": {
  "bundleIdentifier": "com.yourcompany.yourappname",
  "buildNumber": "1.0.0" //increase it for iOS
},
"android": {
  "package": "com.yourcompany.yourappname",
  "versionCode": 1 //increase it for android
}

关于android - React native Expo 版本代码 1 已被使用。尝试其他版本代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70102059/

相关文章:

android - 在新项目中选择 "Android X.X"或 "Google APIs"

javascript - 使用意外日志记录响应 native 更改状态

javascript - Typescript 编译器为 Reselect.createSelector() 生成错误的返回类型

react-native - 我如何解决这个 : Warning: Encountered two children with the same key, `%s`

firebase - foreach 循环无法在 React Native 中与 google cloud firestore 一起使用

android - Expo android应用程序,PushNotifications在独立apk中不起作用?

android - 用android中的动画幻灯片替换activitygroup中的 View

android - ArrayList<String> 中的 ArrayList

android - C++中类似于Android的ArrayMap的容器

javascript - 如何在 React Native 中创建跨平台图标?