简体   繁体   English

您的应用目前以 API 级别 30 为目标,并且必须至少以 API 级别 31 为目标,以确保它是基于最新的 API 构建的

[英]Your app currently targets API level 30 and must target at least API level 31 to ensure it is built on the latest APIs

I was just trying to deploy an app on google play store and got this error.我只是想在 google play store 上部署一个应用程序并得到这个错误。

How do I change my target api to 31. I am aware it needs to be changed in build.gradle file under android/如何将我的目标 api 更改为 31。我知道它需要在android/下的build.gradle文件中进行更改

This is mine:这是我的:

ext {
        buildToolsVersion = "29.0.3"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 30
    }

Expo has a way to add it through my app.config.js using build properties Expo 有一种方法可以使用构建属性通过我的 app.config.js 添加它

My question what do I change it to?我的问题是我要把它改成什么?

Change targetSdkVersion更改targetSdkVersion

ext {
        buildToolsVersion = "29.0.3"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31
    }

暂无
暂无

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

相关问题 您的应用当前针对 API 级别 30,并且必须至少针对 API 级别 31 - Your app currently targets API level 30 and must target at least API level 31 无法将 Cordova 应用程序提交到 Play 商店 - (您的应用程序当前针对 API 级别 30,并且必须至少针对 API 级别 31) - Can't submit Cordova app to the Play Store - (Your app currently targets API level 30 and must target at least API level 31) Android PlayStore 警告您的应用当前针对 API 级别 25 - Android PlayStore warning your app currently targets API level 25 将应用的目标 API 级别更改为至少 30 - React Native - Change your app's target API level to at least 30 - React Native 离子应用程序以API级别25为目标,并且必须至少以API级别26为目标 - Ionic application targets API level 25 and must target at least API level 26 将应用的目标 API 级别更改为至少 26 - Change your app's target API level to at least 26 React Native EXPO:将应用程序的目标 API 级别更改为至少 31 - React Native EXPO: change app's target API level to at least 31 此编译器不支持 API 级别 31。 请使用 API 级别 30 或更早 - An API level of 31 is not supported by this compiler. Please use an API level of 30 or earlier Cordova - this.http.get() 请求不适用于 API 级别 31(它在 API 级别 30 中工作) - Cordova - this.http.get() request does not work with API level 31( It was working in API level 30) 应用卡在 Android 12(API 级别 31)的启动画面上 - App stuck on the Splash screen in Android 12 (API Level 31)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM