Upload failed You need to use a different version code for your APK because you already have one with version code 2

后端 未结 19 1357
温柔的废话
温柔的废话 2020-12-22 20:59

According to this answer How to solve "Your APK's version code needs to be higher than 2." in Google Play's Developer Console? I have just changed the vers

19条回答
  •  情书的邮戳
    2020-12-22 21:22

    If you're using Building Standalone Apps with Expo, the versionCode error might creep up owing to the fact that the standard app.json config only has a reference to the version property.

    I was able to add a versionCode property under android as follows:

    Sample App.json

    {
      "expo": {
        "sdkVersion": "29.0.0",
        "name": "App Name",
        "version": "1.1.0",
        "slug": "app-name",
        "icon": "src/images/app-icon.png",
        "privacy": "public",
        "android": {
          "package": "com.madhues.app",
          "permissions": [],
          "versionCode": 2 // Notice the versionCode added under android.
        }
      }
    }
    

    Detailed documentation: https://docs.expo.io/versions/v32.0.0/workflow/configuration/#versioncode

提交回复
热议问题