如何从一个项目创建多个 apk? [英] How to create multiple apks from one project?

查看:25
本文介绍了如何从一个项目创建多个 apk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 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 反编译 apk,然后使用一些 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屋!

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