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

查看:26
本文介绍了无法安装我自己生成的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.

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

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

知道为什么会这样吗?我只更改了我的应用程序中的一些内容:我从我的应用程序中删除了 basegameutils 库,并迁移到没有 basegameutils 的新 API.就是这样(除了一些错误修正,但这不是原因).

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 是运行 5.1.1 的 stock nexus 6).我还将构建工具从 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 输出表明签名与之前安装的版本不匹配.

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

发生了什么?

推荐答案

我找到了解决方案,但我仍然不知道是什么导致了问题.

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

我的应用程序仍然安装在我设备上的某个地方,即使它没有出现在应用程序抽屉中,而且 Play 商店也告诉了我同样的情况.在设置/应用程序菜单中,我的应用程序仍然存在(正如我在原始帖子的编辑中提到的那样),所以我点击了它.如果您单击菜单按钮,您可以为所有成功的用户选择 unisntall.现在我可以再次安装我的 apk.

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.

我和这个人遇到了同样的问题.那边接受的答案比我格式不佳的文本要好得多;)

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

"你无法安装此应用,因为其他用户已在此设备上安装了不兼容的版本"

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

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