为什么不推荐使用as直接批量打包呢,因为太慢、时间太长,渠道包多的情况下有时也会出现打包中断。呵呵~~
第一种方式:利用360加固保
-
首先android studio的AndroidManifest.xml文件必须有友盟如下配置
<!-- UMeng 配置--> <meta-data android:value="你的APPKEY值" android:name="UMENG_APPKEY" /> <meta-data android:value="${UMENG_CHANNEL_VALUE}" android:name="UMENG_CHANNEL" />
-
打包出一个渠道包,然后打开360加固保->选中应用加固->进行签名设置、多渠道设置
-
签名这个不用说了,主要说一下多渠道设置,采用导入模板的方式导入渠道名
-
划红色箭头的需要勾选,不要通过下方添加的方式添加渠道名,因为市场名称就几个另外不能个性化名称(嘿嘿)
-
整个批量渠道打包过程简单梳理一下:先上传一个渠道包-->上传加固-->加固完成,下载完成-->本地生成一个渠道包(已加固)、签名,本地再生成一个渠道包(已加固)、签名,以此循环