Android PlayStore warning your app currently targets API level 25

萝らか妹 提交于 2019-12-01 04:16:24

You can update your cordova-android to 7.0.0 as that's the version that uses SDK 26 as target, or you can update to cordova-android 7.1.4, as it targets SDK 27.

You can do it by removing the platform and adding it again specifying the version to use like this: (if not using ionic, remove the ionic word from both commands)

ionic cordova platform rm android
ionic cordova platform add android@7.1.4

If you don't want or can't update, you can try to set the target SDK with this preference in the config.xml

<preference name="android-targetSdkVersion" value="26"/>

And then run ionic cordova prepare

This is because Google has made it compulsory for apps to target at least 26 API level by August 2018 for new apps and November 2018 for updating apps.

Docs here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!