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

Should I sign an APK that will be distributed just by side-loading

我将通过电子邮件 and/or 网络 link 分发 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.

即使在调试模式下,您的应用程序也会使用调试密钥进行签名。如果你想把 apk 文件给你的朋友,你一定要签名,否则他们将无法安装包(它会给出一个解析器错误)。

关于你的第二个问题,除非你实际部署到 Play 商店,否则没有任何真正的优势(例如,当你推送更新时,更新将毫无问题地安装,因为它是用相同的密钥签名的) .

关于第 3 部分,您遇到了哪些错误?