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

  • 相关阅读:
    FreeRTOS学习目录
    ESP32随笔汇总
    FPGA开发随笔汇总
    manim在windows系统下安装
    16、频率域滤波
    15、频率域滤波基础——傅里叶变换计算及应用基础
    14、OpenCV实现图像的空间滤波——图像锐化及边缘检测
    13、OpenCV实现图像的空间滤波——图像平滑
    12、OpenCV实现图像的直方图处理
    生成预加载镜像以及设备树
  • 原文地址:https://www.cnblogs.com/jiezzy/p/3958367.html
Copyright © 2011-2022 走看看