简体   繁体   English

不能通过g-mail在Android手机上打开文件(来自Android Studio的app-release-unsigned.apk)的原因是什么?

[英]What could be the reason a file (app-release-unsigned.apk from Android Studio) does not open on an android phone from g-mail?

The file is in the build->outputs->apk folder from a project I built in Android Studio. 该文件位于我在Android Studio中构建的项目的build-> outputs-> apk文件夹中。 What I've done prior to sending that file is open Run/Debug configurations, chose the gradle project and task "assemble", then Apply, Ok, and run the project. 发送该文件之前,我要做的是打开“运行/调试”配置,选择gradle项目和任务“汇编”,然后“应用”,“确定”并运行该项目。

Android requires that all APKs be digitally signed with a certificate before they can be installed. Android要求所有APK必须先通过证书进行数字签名,然后才能安装。

https://developer.android.com/studio/publish/app-signing.html https://developer.android.com/studio/publish/app-signing.html

This has instructions for how to sign the unsigned application. 其中包含有关如何对未签名的应用程序进行签名的说明。

The official documentation does not say anything about whether allowing unknown sources permits unsigned applications to be installed, but this question suggests this is the case: What is the differences between `export signed` and `unsigned` .apk file? 官方文档没有说明是否允许未知来源是否允许安装未签名的应用程序,但是这个问题表明情况是这样的: “ exportsigned”和“ unsigned” .apk文件之间有什么区别?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM