[英]Generate unsigned release APK with Android Studio
I am trying to generate an unsigned release APK using Android Studio. 我正在尝试使用Android Studio生成未签名的发布APK。
My app will not be signed and not distributed on the Store. 我的应用程序不会被签名,也不会在商店中分发。
In Android studio, I go to Build Variants and I select my project + Build Variant = Release. 在Android studio中,我选择Build Variants,然后选择我的项目+ Build Variant = Release。
I run the release, Android studio generates the file my_project-release-unsigned.apk 我运行该版本,Android studio生成文件my_project-release-unsigned.apk
Nice! 太好了! But, when I try to install or deploy the APK, I got the error:
但是,当我尝试安装或部署APK时,我收到了错误:
Installation failed since the APK was either not signed, or signed incorrectly.
I dont understand why I got this error since the APK has been explicitly generated unsigned! 我不明白为什么我得到这个错误,因为APK已经明确生成未签名!
Well, if you could tell me how I can setup gradle to generate my APK unsigned.... 好吧,如果你能告诉我如何设置gradle来生成我的APK未签名....
I am pretty lost! 我很丢失!
Per Signing Your Application : 签署您的申请 :
All applications must be signed.
所有申请必须签名。 The system will not install an application on an emulator or a device if it is not signed.
如果未签名,系统将不会在仿真器或设备上安装应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.