android - 我应该签署一个仅通过侧面加载分发的 APK 吗?

标签 android deployment

我将通过电子邮件和/或网络链接分发 APK。

  1. 我应该签名吗(生成签名的 APK)?
  2. 如果我不将其部署到 Play 商店,对其进行签名有什么好处?
  3. 为什么在构建签名 APK 时只显示错误?

最佳答案

来自 developer.android.com

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/

相关文章:

android - 我需要一个单独的 AndroidWear 应用程序吗

android - 如何在带有图像的系列中自动播放视频?

android - 如何通过 adb(或通过 Python 命令)获取 android 内核版本?

visual-studio-2008 - 如何使用 Visual Studio 2008 部署 .dll 文件?

c++ - 如何分发我的 C++ Allegro 5 程序,以便它们在未安装 Allegro 的计算机上运行?

amazon-web-services - 将 ASP.NET Core 部署到 AWS Elastic Beanstalk,必须包含一个带有 '.runtimeconfig.json' 后缀错误的文件

android - android 上的自定义 editText

sql-server - 在不同的服务器上使用SSIS环境变量

amazon-web-services - 如何从 Codeship 部署到 AWS S3?

android - jquery 移动应用程序白色补丁显示在 android 中的方向更改