安装应用程序和卸载无法完全删除-Android Studio [英] Installing application and uninstalling does not remove completly - Android Studio

查看:726
本文介绍了安装应用程序和卸载无法完全删除-Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近的几个应用程序中都有一个奇怪的问题。

I got a strange issue in few of my recent applications.

我做了什么:

What I did:


  • 直接使用USB电缆和Android Studio安装应用程序。或通过我的本地服务器下载并安装签名的APK。

  • 应用程序在所有方面均正常运行

  • 长按并拖动应用程序图标可卸载应用程序卸载图标

  • 或通过设置->应用程序->通过选择应用程序进行卸载

  • Installing an application either directly using USB cable with Android Studio . Or downloading and installing signed APK through my local server.
  • Application works fine in all aspects
  • Uninstalling the application by long press and dragging the app icon to Uninstall icon
  • Or uninstalling through Settings -> Apps -> Uninstall by selecting the app

问题:

Problem:


  • 卸载后,在设置->应用程序->仍然下该应用程序如下所示


  • 我的应用程序仍显示在底部列表中,并且显示未为此用户安装消息

  • 我不是确定为什么会这样。对于大多数设备,再次无法从本地服务器下载/安装新的APK版本,除非我再次单击上方的列表进行卸载并转到下图所示的下一个屏幕

  • My application still shows in the list at the bottom with NOT INSTALLED FOR THIS USER message
  • I am not sure why this is happening. For majority of devices again downloading/installing new APK version from local server does not work unless I again uninstall by clicking on above list and goes to next screen as shown below.


  1. 可能会发生什么造成这个?

  2. 是否有其他开发人员遇到相同的问题?




Android Studio版本:2.1.3

清单中的Min SDK:17

已测试的设备:Nexus 4,OnePlus 3,Motorolla Gen-3,Honor

Android Studio Version : 2.1.3
Min SDK in Manifest : 17
Devices Tested : Nexus 4 , OnePlus 3 , Motorolla Gen-3 , Honor

进行了不同的试验:
设备只有一个用户所有者


  1. 现在,我已经卸载了从App Store下载的应用程序。 没有成功完成了此操作,并再次不为该用户安装

  2. 再次完全删除我的应用程序并重新安装完成。之后,我再次尝试卸载。为我的应用程序显示了相同的选项
    未为该用户安装

  3. 似乎是自定义应用程序的问题,而不是从App Store安装的应用程序。实际上,有些步骤可能是我所缺少的。谁能指出!!

  1. Now I have uninstalled an application which was downloaded from App store. This was done successfully without giving an option again with NOT INSTALLED FOR THIS USER
  2. Again complete removal of my application and reinstalling is done. After this , I tried to uninstall again.The same options are shown for my application NOT INSTALLED FOR THIS USER
  3. Seems to be this is the issue with custom applications and not those installed from App Store. In-fact some steps which probably I am missing. Can anyone point out!!


推荐答案

在Android中,多用户环境来自Android 4.2,

In Android there is multiuser environment came from Android 4.2,

因此,当设备上存在多个用户帐户时,如果一个用户安装了该应用程序,则所有用户都将安装该应用程序。

So when there are multiple user accounts present on the device, and if one user installs the app, it get's installed for all users.

尽管从用户卸载它后,它仍然存在于其他用户中。

Though when you uninstall it from your user, it's still present in other user.

因此它显示该消息:未安装该用户


要解决此问题,可以通过以下三种方法尝试使用任何可行的方法:

1。。您需要登录该用户环境并卸载应用程序。

2。卸载对于所有用户(您需要是管理员用户)转到设置>应用,找到并打开应用信息。然后,打开溢出菜单(3个垂直点),然后选择为所有用户卸载。

3。。您可以使用adb命令从PC上为所有用户卸载应用程序:adb uninstall在命令提示符/外壳上。

To solve this problem, there's are three ways, you can try any one feasible to you:
1. You need to login to that user environment and uninstall the app.
2. Uninstall for all users(you need to be admin user) Go to Settings > Apps, find and open the app info. Then, open the overflow menu (3 vertical dots), and choose Uninstall for all users.
3. You can uninstall app for all users from PC using adb command: adb uninstall on command prompt/shell.

这篇关于安装应用程序和卸载无法完全删除-Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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