[英]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.