无法部署到Real Android设备Xamarin [英] Cant Deploy To Real Android Device Xamarin

查看:93
本文介绍了无法部署到Real Android设备Xamarin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题与此帖子有关失败[INSTALL_FAILED_UPDATE_INCOMPATIBLE],即使应用似乎未安装

My problem is related to this post Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] even if app appears to not be installed

我无法在可在模拟器上正常运行的真实设备上部署我的应用程序,但出现部署错误,但在错误"选项卡中什么也没有.

I am not able to deploy my app on a real device it works properly on the emulator , i get deployment error, but nothing in the errors tab.

这是来自构建输出

2>构建成功.

2>Build succeeded.

2>发生错误.有关更多详细信息,请参阅日志中的完整异常.

2>An error occured. See full exception on logs for more details.

2>安装的软件包不兼容.请手动卸载并再试一次.

2>The installed package is incompatible. Please manually uninstall and try again.

2>

==========内部版本:1成功,0失败,1最新,跳过0 ====================部署:0成功,1失败,0跳过==========

========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

即使卸载了该应用程序后,我仍无法在我的真实设备上部署该应用程序,其他应用程序也可以通过VS很好地安装.

even after uninstalling the app i was not able to deploy my app on my real device , other apps install fine thorough VS.

推荐答案

没有针对此问题的特定解决方案,我认为原因是您的手机操作系统没有完全卸载您的应用程序,应用程序签名仍然存在(发生在高度定制的android上(在我的情况下是MIUI 8).我发现使用logcat-签名与以前安装的版本不匹配

There is no specific solution available for this problem , i think the reason is your phone OS doesn't completely uninstall your app, the app signature still lingers on(happens with heavily customized android, in my case its MIUI 8 ). I found out using logcat - signatures do not match the previously installed version

潜在的解决方案1:卸载应用程序后,使用Titanium Backup(需要Root)完全删除应用程序文件夹.

Potential Solution 1: Use Titanium Backup (Requires Root) to remove the app folder completely after uninstalling the app.

潜在的解决方案2:转到设置并从那里删除应用程序,确保对所有用户使用选项卸载(在MIUI 8中不可用)

Potential Solution 2: Go to settings and remove the app from there , make sure to use the option uninstall for all users(in MIUI 8 this wasn't available)

潜在的解决方案3:使用adb可以完全卸载您的应用,就像卸载所有用户一样.

Potential Solution 3: Use adb to uninstall your app completely its same as uninstall for all users.

adb uninstall yourpackagename

万一您不知道它是否可以签入您的android解决方案的属性.

Incase you dont know it check in properties of your android solution.

找到它的另一种方法如何在不使用adb的情况下从adb删除应用知道它的包名

adb根

然后输入adb shell

Then enter adb shell

adb外壳

找出您的应用程序包名称:

Find out your apps package name:

pm列表包|grep您的应用名称/与您的应用相关的内容名称"

pm list packages | grep "your app name/something related to your app name"

然后使用:

adb卸载

OR

pm卸载

潜在的解决方案4:(不是真正的解决方案)更改应用程序包名称-不会与您已经安装的程序包冲突

Potential Solution 4:(Not really a Solution) Change the app package name - wont conflict with the one you have already installed

注意:对设备进行硬重置显然可以解决该问题.

Note:Doing a hard reset of your device should solve the issue obviously.

在我的情况下,第4个选项有效,如果有人知道如何从android删除以前安装的应用程序签名,请让我知道我将相应地更新答案(可能需要深入了解文件系统).

In my case 4th option worked, if anyone knows how to remove the previously installed app signature from android please let me know i will update the answer accordingly(probably requires an in-depth knowledge of the file system).

这篇关于无法部署到Real Android设备Xamarin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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