简体   繁体   English

Google Play 控制台未在来自 React Native expo 的捆绑包中正确检测到我的 SDK 版本

[英]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.我是 google play console 的新手,所以我不确定发生了什么。 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?当我尝试上传我的包时,它只是说我有一个 API 版本 30,我需要至少有 31,但我的构建有一个 SDK 44。我试图将 SDK 从 44 降级到 31,试图使用“expo build:android”和“eas build --platform android”构建它,没有任何改变......我是在代码中遗漏了一些配置还是其他什么东西?

Here an image of the build from the expo.dev webpage.这是来自 expo.dev 网页的构建图像。

Here the message i recive when i try to upload the bundle to GooglePlay Console."这是我尝试将捆绑包上传到 GooglePlay 控制台时收到的消息。”

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英文消息说:“目前,您的应用程序的目标 API 级别为 30,但它必须至少为 31 以确保它使用最新的 API 进行编译,从而提供最佳的安全性和性能。将您的应用程序的目标 API 级别更改为级别 31 或更高。更多信息

And the "More information" link: https://developer.android.com/google/play/requirements/target-sdk以及“更多信息”链接: https://developer.android.com/google/play/requirements/target-sdk

I ended up triying the expo-build-properties but didn't even worked...我最终尝试了 expo-build-properties 但甚至没有工作......

"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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Google Play 控制台上传我的 React Native/Expo 应用程序时出错 - Error at uploading my React Native/Expo app on Google Play Console React Native Expo SDK 版本已过时 - React Native Expo SDK version is outdated React Native Expo - Google Play Console 告诉我我要求我不要求的权限 - React native Expo - Google Play Console tells me i ask for permissions i don't Expo React-Native Android 版本未更新 Google Play 的版本代码 - Expo React-Native Android build not updating Version Code for Google Play React-Native 使用 expo sdk 播放视频 - React-Native play video using expo sdk 我想将我的应用程序目标 sdk 版本 29 降级到 28 谷歌播放控制台可以允许这样做吗? - I want to downgrade my application target sdk version 29 to 28 can google play console allowed this? 从 expo 迁移到 Bare React Native 时在 Google Play 商店中发布应用 - Publish app in Google play store when migrating from expo to bare react native 将 React Native 应用程序上传到 Google 控制台 [Expo Ejected] - Upload React Native app to Google Console [Expo Ejected] 当我的android版本为6+时,为什么android / google play会请求我的react native应用程序的权限? - Why is android / google play asking for permissions for my react native application when my android version is 6+? 如何从Google Play控制台中删除带有高版本代码的Alpha版本? - How can i remove my alpha version with high version code from Google Play Console?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM