无法在设备上安装 Android Unsigned 应用程序 [英] Android Unsigned App not able to install on device

查看:42
本文介绍了无法在设备上安装 Android Unsigned 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序能够在模拟器上运行,我将其导出为未签名的应用程序.

My app able run on simulator and I export it as Unsigned App.

在我手机的设置-->>应用程序--->>检查未知来源.

On my phone's Setting-->>Applications--->>Unknown sources checked.

我通过 USB 将 .apk 下载到手机存储中.

I download the .apk into phone storage through USB.

然后在文件管理器下,我发现存储了 .apk 并点击安装按钮并尝试安装,

Then under File Manager, I found that stored .apk and hit install button and it try to install,

但最后它说未安装应用程序.但为什么?怎么了?

But finally it says Application Not installed. but why? wht's wrong?

我也尝试 ./adb install -r myapp.apk 但它说错误:找不到设备

Also I try ./adb install -r myapp.apk but it said error:device not found

推荐答案

我从未使用您的方法在设备上测试过应用...当我不使用 USB 在我的设备上调试时我只想将它安装在我的手机上,我执行以下操作:

I have never tested an app on a device by using your method... When I am NOT debugging on my device using usb and I just want to install it on my phone, I do the following:

  1. 如果您已在模拟器上运行它,则项目的 bin 目录中有一个 .apk 文件.

  1. If you have run it on the emulator then there is an .apk file in the bin directory of your project.

通过 USB 或其他方法(我使用 Dropbox)将该 .apk 移动到您的手机.

Move that .apk to your phone via usb or another method (I use dropbox).

打开 .apk 并安装到您的手机上.

Open the .apk and install on your phone.

前面的答案是正确的,必须签名.但是按照我的方法,它将使用您的调试密钥进行签名.

The previous answers are correct, it must be signed. But by doing my method it will be signed with your debug key.

在将其发布到市场之前,您显然希望使用真实密钥对其进行实际签名.

You will obviously want to actually sign it with a real key before publishing it to the market.

这篇关于无法在设备上安装 Android Unsigned 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆