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

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

问题描述

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

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 App无法在设备上安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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