所以我有一段时间没有发布. Android Studio曾经只生成一个apk,这是一个发布版本.这次它生成3如下:
1.app-armeabi-v7a-release.apk
2.app-x86-release.apk
3.app-universal-release.apk
我将假设我想将通用版用于Google Play商店.
但有人可以打破每个人的具体细节吗?
Different Android handsets use different cpus,which in turn support
different instruction sets. Each combination of cpu and instruction
sets has its own Application Binary Interface,or ABI. The ABI
defines,with great precision,how an application’s machine code is
supposed to interact with the system at runtime. You must specify an
ABI for each cpu architecture you want your app to work with.
每个都将包含架构的特定指令,但app-universal-release.apk除外.
app-armeabi-v7a-release.apk适用于v7-a ARM devices
app-x86-release.apk适用于“x86” or “IA-32”
app-universal-release.apk包含app-armeabi-v7a-release.apk和app-x86-release.apk中的特定指令.
你可以只使用通用的,但如果生成的apk太大,你可能不想使用它.用户倾向于避免在游戏商店中使用大型应用程序.因此,要克服这一点,您需要将apk分解为特定的一个,以便生成的apk更小.
如果您不想使用通用的,则需要将每个特定的apk上传到Play商店.当用户访问Play商店中的应用程序时,他/她将获得与他/她的设备cpu类型匹配的特定apk.