不能安装我自己生成的apk [英] Can not install my own generated apk

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

问题描述

我更新了我的应用程序,并在我的设备上进行了测试。如果我通过eclipse中的运行按钮测试应用程序,但如果我将其导出为一个apk,并尝试安装该apk失败,一切都可以正常运行。



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



任何想法为什么会发生这种情况?我只是在我的应用程序中改变了一些事情:我从我的应用程序中删除了basegameutils lib,并将其迁移到没有basegameutils的新api。这是它(除了一些错误修复,但不可能是原因)。



我已经重新启动eclipse并清理所有项目多次。



目标sdk是22,我正在使用最新的系统映像,等等对于api级别(我的divce是一个库存nexus 6,5.1.1运行)。我还将我的构建工具从22.0.1更新为23.0.1,并删除了22版本。这是原因吗?



我还尝试在开发控制台中上传apk,没有错误。



感谢您的帮助。



编辑:



logcat输出表示签名与以前安装的版本。



如果我尝试通过播放商店安装当前的实时版本,还有一个错误消息,指出我无法安装此应用程序,因为另一个用户已经安装这个设备上不兼容的版本(但我没有安装,我没有设备上的多个用户)。



如果我在设置我的应用程序菜单应用程序显示在列表的底部,但是有一个说明,表示该应用程序没有为用户安装。如果我点击它,所有的按钮都是不可点击的(所以我无法卸载它)。



发生了什么?

解决方案

我找到了一个解决方案,但是我仍然不知道是什么原因造成的。



即使它没有出现在应用程序的抽屉里,游戏店也告诉我一样。在设置/应用程序菜单中,我的应用仍然存在(正如我在原始帖子的编辑中提到的),所以我点击它。如果您点击菜单按钮,您可以为所有伎俩的用户选择unisntall。现在我可以再次安装我的apk了。



我不知道这是怎么回事,但是我希望这有帮助。



编辑:



我和这个人有同样的问题。在那里接受的答案比我不太理解的文本好多了);



p>

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.

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

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).

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

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?

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

Thank you for your help.

EDIT:

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

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).

What is happening?

解决方案

I found a solution but I still have no idea what caused the problem.

somewhere on my device my app was still installed even though it didnt show up in the app drawer and the play store told me the same. In the settings/apps menu my app was still present (as i mentioned in the edit of my original post) so i clicked on it. If you click on the menu button you can chose unisntall for all users which did the trick. now I can install my apk again.

I have no idea how this happened but there you go, i hope this helps.

EDIT:

I had the same problem as this guy had. the accepted answer over there is much nicer than my poorly foramtted text ;)

"You cannot install this app because another user has already installed an incompatible version on this device"

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

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