离子添加平台android与自定义android-target [英] ionic add platform android with custom android-target

查看:192
本文介绍了离子添加平台android与自定义android-target的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在自定义android目标的离子中添加平台吗?
如果我尝试这个命令:

Anybody knows how to add platform in ionic with custom android target ? If I try this command :


ionic platform add android

ionic platform add android

它总是添加Android平台与最新的android-target平台,任何人都知道如何自定义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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆