简体   繁体   中英

Google play console not detecting my SDK version correctly in bundles from react native expo

I'm new to google play console so I'm not sure about what is happening. When I try to upload my bundle it just says I have an API versión of 30 and that I need to have at least 31 but my build has an SDK of 44. I've tried to downgrade the SDK from 44 to 31, tried to build it with "expo build:android" and with "eas build --platform android", nothing changed... Am I missing some config in the code or is it something else?

Here an image of the build from the expo.dev webpage.

Here the message i recive when i try to upload the bundle to GooglePlay Console."

The message in English says: "Currently, your app's target API level is 30, but it must be at least 31 to ensure it compiles with the latest APIs, which provide optimal security and performance. Change your application's target API level to level 31 or higher. More information

And the "More information" link: https://developer.android.com/google/play/requirements/target-sdk

I ended up triying the expo-build-properties but didn't even worked...

"plugins": [
  [
    "expo-build-properties",
    {
      "android": {
        "minSdkVersion": 31,
        "compileSdkVersion": 31,
        "targetSdkVersion": 31,
        "buildToolsVersion": "31.0.0"
      },
      "ios": {
        "deploymentTarget": "13.0"
      }
    }
  ]
]

You should define this:

        minSdkVersion = 23
        compileSdkVersion = 31
        targetSdkVersion = 31

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM