zoukankan      html  css  js  c++  java
  • ant 可自动替换友盟渠道、版本号、包名

    可自动替换友盟渠道、版本号、包名

    如何集成到我的项目里

    前提:了解android官方文档,在项目目录中执行ant debug能打包,比如常见的打包步骤:

    android update project -p . -s -t "android-19"
    ant debug
    

    如果ant debug打包能通过,则可以使用下面的自动打包。

    下载custom_rules.xml,放到项目目录(假设为Project1),然后执行:

    ant auto-debug -Dversion=time
    

    即可,生成的包在./bin/中。

    如果想打release包,下载ant.properties,修改其中的密码等配置,然后执行:

    ant auto-release -DUMENG_CHANNEL=googlePlayStore -Dpackage=com.example.ant.beta
    

    即可。

    中间会出现一些问题,因为原作者是在linux上运行的,所以在windows上需要修改customer_rules.xml的66行为

    <exec dir="${auto.project.tmp.dir}" executable="ant.bat">

    同时AndroidManifest.xml 文件里不要有中文,不然会报编码问题

     http://blog.csdn.net/cheligeer1988/article/details/12781939   一般打包

    参考:http://www.cnblogs.com/sink_cup/p/android-ant-auto-release.html      git自动替换友盟渠道、版本号、包名

    http://blog.csdn.net/u010427035/article/details/22203825    Ant多渠道批量打包带签名的包

    http://blog.csdn.net/liuhe688/article/details/6679879   详细步骤

    http://blog.csdn.net/up1up2up3/article/details/21472883  可动态修改包名

    http://handsomeliuyang.iteye.com/blog/1156070

    http://www.apkbus.com/android-138842-1-1.html

  • 相关阅读:
    js截取字符串区分汉字字母代码
    List 去处自定义重复对象方法
    63. Unique Paths II
    62. Unique Paths
    388. Longest Absolute File Path
    41. First Missing Positive
    140. Word Break II
    139. Word Break
    239. Sliding Window Maximum
    5. Longest Palindromic Substring
  • 原文地址:https://www.cnblogs.com/jiezzy/p/3958367.html
Copyright © 2011-2022 走看看