无法安装未签名的 APK

我正在尝试将我的应用程序分发给一些人进行测试。 我已经安装在我的欲望直接从日食,它的工作原理很好。

为了创建一个 APK 文件,我直接从 eclipse 中选择 “导出未签名的应用程序包”,然后创建一个 APK 文件。我用电子邮件发给自己,然后把文件下载到 SD 卡上。但是当我尝试安装它(使用 ES 文件浏览器) ,我得到一个消息说 “应用程序未安装”

(我已经在手机上查看了“允许安装非市场应用程序”) 有什么想法吗?

是的,我发现了问题,请看下面我的回答:

我不知道,即使有“ 允许安装未标记的应用程序”,我仍然需要签署申请。 我自己签署了我的应用程序,遵循这个链接自我签署和发布应用程序,它只需要5分钟,然后我电子邮件签署的 APK 文件给我自己,下载到 SD 卡,然后安装它没有任何问题。

172612 次浏览

You cannot install an unsigned application on a phone. You can only use it to test with an emulator. If you still want to go ahead, you can try self-signing the application.

Also, since you are installing the application from an SD card, I hope you have the necessary permissions set. Do go through stackoverflow.com and look at questions regarding installation of applications from an SD card - there have been many and they have been asked before.

Hope that helps.

I did not know that even with the "Allow Installation of non-Marked application", I still needed to sign the application.

I self-signed my application, following this link self-sign and release application, It only took 5 minutes, then I emailed the signed-APK file to myself and downloaded it to SD-card and then installed it without any problem.

You can test the unsigned-apk only on Emulator. And as its step of application deployment and distribution, you should read this article atleast once, i suggest: http://developer.android.com/guide/publishing/app-signing.html.

For your question, you can find the below line in above article:

All applications must be signed. The system will not install an application that is not signed.

so you have to have signed-apk before the distribution of your application.

To generate Signed-apk of your application, there is a simple wizard procedure, click on File -> Export -> Android -> Export Android application.

enter image description here

I cannot install an apk build with "Export Unsigned Application Package" Android SDK feature, but i can install an apk browsing the bin directory of my project after the project buid. I put this apk on my sd on my HTC Wildfire phone, select it and the application install correctly. You need to allow your phone to install unsigned apk. Good Luck.

An unsigned application cannot be installed. When we run directly from eclipse, that apk is signed with debugger key and can be found in bin\ folder of the project. You can use that for test purpose distribution also.

You could also send your testers the apk that is signed with your debug key. You can find that in the bin folder of your project after building in debug mode.

Just follow these steps to transfer the apk onto the real device(with debugger key) and which is just for testing purpose. (Note: For proper distribution to the market you may need to sign your app with your keys and follow all the steps.)

  1. Install your app onto the emulator.
  2. Once it is installed goto DDMS, select the current running app under the devices window. This will then show all the files related to it under the file explorer.
  3. Under file explorer go to data->app and select your APK (which is the package name of the app).
  4. Select it and click on 'Pull a file from the device' button (the one with the save symbol).
  5. This copies the APK to your system. From there you can copy the file to your real device, install and test it.

Good luck !