无法确定安装包 com.company.appName [英] Could not determine the installation package com.company.appName

查看:23
本文介绍了无法确定安装包 com.company.appName的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法再在 Android 上启动我的应用.iOS 对应的似乎没问题.完整的错误是:

I can't launch my app anymore on Android. The iOS counterpart seems to be fine. The full error is:

ADB0000: Could not determin the installation path for package.com.company.appname. 
'adb shell pm path com.company.appname' returned.

它正在工作.我从 repo 中提取了一些更改,这些更改都不应该影响任何应用程序属性.实际上它最初是启动的,但是我在应用程序中遇到了一些奇怪的行为,所以我从手机上卸载了整个东西.现在我根本无法启动它.关于这个错误,我能找到的是我的 AndroidManifest.xml 可能有一个错字,但我找不到任何突出的东西.就像我说的,最近那里应该没有任何变化.任何帮助将不胜感激.

It was working. I pulled some changes from the repo, none of which should have affected any app properties. Actually it was initially launching, but I was getting some odd behavior within the app, so I uninstalled the whole thing off of my phone. Now I cannot launch it at all. What I could find about this error was that my AndroidManifest.xml might have a typo, but I couldn't find anything that stuck out. And like I said, there shouldn't have been any changes in there recently. Any help would be greatly appreciated.

我已经采取的步骤:1.清理和重建2.重启VS3.删除obj和bin文件夹4.在here和xamarin论坛上搜索解决方案

Steps I have already taken: 1. Clean and rebuild 2. restart VS 3. delete obj and bin folders 4. search for solution on here and xamarin forums

更新:我刚刚在另一台安卓设备上成功启动了它.所以这似乎是我的 Pixel 2 XL 的问题.我如何确保应用的所有痕迹都消失了,以便我可以重新开始?

UPDATE: I just successfully launched it on another android device. So it seems to be a problem with my Pixel 2 XL. How do I make sure all traces of the app are gone so I can start fresh?

推荐答案

当您在 Android 设备上拥有多个用户时,通常会发生这种情况(我仍然不知道为什么会这样).

This usually happens when you have more than one user in an Android device (I still cannot figure out why is this).

如评论中所述,使用 adb uninstall full.package.name 命令将卸载应用程序.

As mentioned in the comment by using the adb uninstall full.package.name command it will uninstall the app.

但是还有另一种不需要命令行或与此无关的方法.

But there's another way which does not require command line or nothing related to that.

如果您转到 Android 设备上的设置 -> 应用和通知,您将能够从那里卸载它.

If you go to the Settings -> Apps and Notifications on the Android device you will be able to uninstall it from there.

让我们在这里以 UnoQuickStart.Droid 应用为例.如您所见,它已经与您的状态相同.

Let's use the UnoQuickStart.Droid app as example here. As you can see it's already in the same state as it was yours.

在应用详细信息中,卸载和强制停止均被禁用.但是你看到右上角的那三个点了吗?点击它.

Once in the App details both Uninstall and Force Stop are disabled. But do you see those 3 dots image at the right upper corner? Click on it.

这将为您带来一个上下文菜单,其中包含一个为所有用户卸载"选项.您可以放心地点击它.

This will bring you a context menu with a single option "Uninstall for all users". You can click on it with confidence.

正如预期的那样,一条警告消息告诉您将会发生什么.只需点击确定"即可.

As expected, a warning message telling you what's gonna happen. Just click "Ok".

如您所见,该应用不再安装,您现在可以再次安装.

As you can see the App is not longer installed and you will now be able to install it again.

希望这会有所帮助.-

这篇关于无法确定安装包 com.company.appName的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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