离子添加平台 android 与自定义 android-target [英] ionic add platform android with custom android-target
问题描述
有人知道如何在带有自定义android目标的ionic中添加平台吗?如果我尝试这个命令:
Anybody knows how to add platform in ionic with custom android target ? If I try this command :
ionic平台添加android
ionic platform add android
它总是使用最新的 android-target 平台添加 android 平台,任何人都知道如何在不编辑清单的情况下自定义 android 目标和自定义平台添加 android 版本?
It always add android platform with newest android-target platform, anybody knows how to custom the android target without edit the manifest and custom platform add android version ?
推荐答案
要更改您想要的构建版本,请更改位于根项目路径的 config.xml.
To change the build version you want change your config.xml located at the root project's path.
在 config.xml 中添加以下几行,然后在构建 android 应用程序时自动更新设置.
Following lines add in config.xml and then settings are updated automatically at the time building android app.
<platform name="android">
<preference name="android-minSdkVersion" value="XX"/>
<preference name="android-targetSdkVersion" value="XX"/>
<!--other line code -->
</platform>
对于 Ionic2,请查看我的要点这里.
For Ionic2 please check my gist to here.
希望对你有帮助!
这篇关于离子添加平台 android 与自定义 android-target的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!