gpt4 book ai didi

android - 区分APK文件?

转载 作者:行者123 更新时间:2023-11-29 00:40:31 26 4
gpt4 key购买 nike

我有一个应用程序,我想为其分发免费和付费版本。但是,当我尝试在同一部手机上安装它们时,它们都注册为同一个应用程序。它们有不同的包名,所以我不知道如何区分它们以便它们可以作为两个应用程序安装。

当我签署它们时,它们也有完全不同的证书。

最佳答案

来自 this question:

The Android SDK formally addresses the issue of a shared or common codebase with something called a library project.

Basically, the shared code is defined as a library project, then a paid and a free version are simply two different projects in your eclipse workbench, both referencing aforementioned library project.

更新链接:http://developer.android.com/guide/developing/projects/projects-eclipse.html

关于android - 区分APK文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9676419/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com