如何从一个项目创建多个APK? [英] How to create multiple apks from one project?
问题描述
我有一个android项目,我需要创建多个apk.每个APK之间唯一的区别是包名称(例如com.my.package.name)和应用程序字符串名称,因此我可以在一台设备上安装该应用程序的多个实例.有更好的方法吗?我曾考虑过创建一个图书馆项目,但我认为可能会有一种更简单的方法.
I have one android project where I need to create multiple apks. The only difference between each apk will be package name (e.g. com.my.package.name) and the app string name so I can install multiple instances of the app on one device. Is there a better way of doing this? I thought about creating a library project, but I thought there might be an easier way of doing this.
推荐答案
我实际上使用了 apktool 进行反编译,然后使用某些Perl脚本来更改包名称来编辑smali文件.
I actually used the apktool to decompile the apk and then edited the smali files using some Perl script to change the package name.
这篇关于如何从一个项目创建多个APK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!