我将通过电子邮件和/或网络链接分发 APK。
- 我应该签名吗(生成签名的 APK)?
- 如果我不将其部署到 Play 商店,对其进行签名有什么好处?
- 为什么在构建签名 APK 时只显示错误?
最佳答案
Android requires that all apps be digitally signed with a certificate before they can be installed. Android uses this certificate to identify the author of an app, and the certificate does not need to be signed by a certificate authority. Android apps often use self-signed certificates. The app developer holds the certificate's private key.
即使在 Debug模式下,您的应用程序也会使用调试 key 进行签名。如果你想把 apk 文件给你的 friend ,你一定要签名,否则他们将无法安装包(它会给出一个解析器错误)。
关于你的第二个问题,除非你实际部署到 Play 商店,否则没有任何真正的优势(例如,当你推送更新时,更新将毫无问题地安装,因为它是用相同的 key 签名的)。
在第 3 部分,您收到了哪些错误?
关于android - 我应该签署一个仅通过侧面加载分发的 APK 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30357651/