无法安装自己产生的apk [英] Can not install my own generated apk

查看:144
本文介绍了无法安装自己产生的apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新了我的应用程序和测试它在我的设备上。如果我通过测试运行按钮的应用程序在Eclipse中,但如果我把它导出到APK并尝试安装失败的APK一切工作正常。

I updated my app and tested it on my device. Everything works fine if I test the app via the run button in eclipse but if I export it into an apk and try to install the apk it fails.

有没有错误code或其他任何东西,它只是说该应用程序尚未安装。

There is no error code or anything else, it just says the app has not been installed.

任何想法,为什么出现这种情况?我只是改变了我的应用程序的几件事情:我是从我的应用程序中删除的basegameutils lib和迁移到新的API,而basegameutils。那是它(除了一些bug修正,但是这不能成为原因)。

Any idea why this happens? I only changed a few things in my app: I removed the basegameutils lib from my app and migrated to the new api without basegameutils. Thats it (except for some bugfixes but that can not be the cause).

我已经重新启动Eclipse和清理所有项目多发时期。

I did already restart eclipse and cleaned all projects mutiple times.

目标SDK是22和我使用最新的系统映像等为API级别(我divce是一个承上启下的股票6 5.1.1运行)。我也是从22.0.1更新我的构建工具23.0.1并删除了22版。这是什么原因?

The target sdk is 22 and I am using newest system images and so on for that api level (my divce is a stock nexus 6 with 5.1.1 running). I also updated my build tools to 23.0.1 from 22.0.1 and removed the 22 version. Is this the cause?

我也试过上传APK在开发者控制台,并且没有误差修改。

I also tried to upload the apk in the dev console and there were no erros.

感谢您的帮助。

编辑:

在logcat的输出称,签名不匹配previously安装的版本。

The logcat output says the signature does not match the previously installed version.

如果我尝试通过Play商店安装当前真人版也有一个错误消息说,因为其他用户已经安装了此设备上不兼容的版本无法安装这个程序(但我没有安装它,我不有设备上的多个用户)。

If i try to install the current live version via the play store there is also an error message saying i can not install this app because another user already installed an incompatible version on this device (but i dont have it installed and i dont have multiple users on the device).

如果我得到了我的应用程序是在列表的底部显示的设置应用程序菜单,但有一个纸条,上面写着应用程序未安装的用户。如果我点击它所有按钮均无法点击(所以我不能卸载它)。

If i got to the app menu in the settings my app is shown at the bottom of the list but there is a note saying the app is not installed for the users. If i click on it all buttons are unclickable (so i can not uninstall it).

这是怎么回事?

推荐答案

您的签名改变了,所以你提到你必须卸载previous版本。您试图从设备UI卸载和失败 - 所以从命令行试试吧:

Your signature changed, so as you mentioned you must uninstall the previous version. You tried to uninstall from the device UI and that fails - so try it from the command-line:

亚行卸载your_package_name

adb uninstall your_package_name

,只有偶尔的命令行卸载工作。

Seen on Nexus devices, occasionally only command-line uninstalls work.

这篇关于无法安装自己产生的apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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