react-native - React Native : Change targeted sdk version for play store upload
问题描述
In Play Store I am trying to upload my app but I'm getting a warning i.e. mentioned below:
Target API level requirements from August 2018
Warning:
Your app currently targets API level 22 and must target at least API level 26 to ensure it is built on the latest APIs optimized for security and performance.
From August 2018, new apps must target at least Android 8.0 (API level 26). From November 2018, app updates must target Android 8.0 (API level 26).
解决方案
Open build.gradle
under android/app/
find the android { }
block
Change the following version to the below:
compileSdkVersion 27
buildToolsVersion "27.0.3"
minSdkVersion 16
targetSdkVersion 27
In the dependencies block, change the appcompat
line to match the target version
compile "com.android.support:appcompat-v7:27.1.1"
推荐阅读
- amazon-web-services - API 创新不会触发 AWS API Gateway 的基于自定义请求的 lambda 授权程序
- python - 根据用户输入更新 JSON
- c++ - C++/MySQL 连接器 - CDK 错误:字符串转换失败
- orocrm - 来自 bitnami 的 OroCRM 4.1.6 VM 映像 - 在代理后面时,每个页面上 /api/rest/latest/navigationitems/pinbar 上的错误 404 加载
- python - 退出后如何访问在“while True:try/break”循环中生成的局部变量?
- c# - Caliburn.Micro 导航导致 StackOverflowException
- javascript - 反应useState不更新对象数组
- java - 如何获取给定字符串的文件大小?
- flutter - 发布失败(65')退出代码65
- python-3.x - Python 请求在下载二进制文件时工作非常缓慢