install_failed_uid_changed no root 没有root手机

Installation error: INSTALL_FAILED_UID_CHANGED no root

安装错误:install_failed_uid_changed没有根

Tags:  android  eclipse  adb  source
标签:  android  eclipse  adb  source
 

问题 (Question)

I have checked all the solutions, comments and answers of all other questions in StackOverflow.html

I have been running, compiling and debugging my app for months. But suddenly it started to appear this message in my Eclipse when using my Nexus to play with it.java

MOBILE:android

  • I have no root !!! (It's a Nexus, and I have no root, and all the answers in other Stackoverflow's questions need root to be executed)
  • The application is uninstalled, there's no trace of it in "Applications"
  • Since I don't have root access, I can not access to /data/data folder, or /data/local, or /data
  • do know problem would be solved resetting the phone to factory settings, but, sincerely, I can not.

ECLIPSE:ios

  • I have cleaned the project many times, restart Eclipse and even update it
  • I can not change the name of the project (as one solution suggests), since it's a long time project and I can not change it
  • Console says:shell

    • Installation error: INSTALL_FAILED_UID_CHANGED
    • Please check logcat output for more details.
    • Launch canceled!
  • Logcat says:缓存

    • 01-05 12:18:19.265: W/ActivityManager(761): No content provider found for permission revoke: file:///data/local/tmp/MyApp.apk
    • 01-05 12:18:20.855: W/PackageManager(761): Package couldn't be installed in /data/app/com.myapp-1.apk
  • I can install, uninstall other APK/applications with no problems at all. So it's not about permissions in /data folder/subfolders安全

CONSOLE:架构

  • If I try to uninstall (with -d or any other parameter) the app it says: "Failure" (because adb does not find the app in the phone)

So, I'm not debugging with virtual machine / emulator. I have a Nexus no-rooted with no trace of the application, and I can not build the app from Eclipse to the device.app

Thank youeclipse

我已经检查了全部的解决方案,在计算器的全部其余问题的意见和答案。

我已经运行,编译和调试应用程序的几个月我。可是它忽然开始出现此消息时,我使用个人Eclipse Nexus玩它。

手机

  • 我没有根!!!(这是一个关系,我没有根,和其余栈溢出的问题全部的答案须要根被执行)
  • 应用程序卸载,没有在“应用程序”
  • 由于我没有root权限,我不能访问/数据/数据文件夹,或/数据/地方,或/数据
  • I知道问题会获得解决,重置手机出厂设置,可是,真诚,我不能。

日蚀

  • 我已经打扫过屡次从新启动Eclipse项目,甚至更新
  • 我不能改变项目的名称(做为一个解决方案建议),由于它是一个长期项目,我没法改变它
  • 控制台说:

    • 安装错误:install_failed_uid_changed
    • 请检查logcat输出更多的细节。
    • 发射被取消了!
  • LogCat说:

    • TV动画12:18: 19.265:W / activitymanager(761):不容许内容提供者发现撤销:文件:/ / /数据/地方/甲氧苄啶/ myapp.apk
    • TV动画12:18: 20.855:W / packagemanager(761):包不能被安装在/数据/应用程序/ com.myapp-1.apk
  • 我能够安装,卸载其余APK /应用程序没有在全部的问题。因此这不是关于权限的文件夹/文件/数据

控制台

  • 若是我试图卸载(与D或任何其余参数)的应用程序它说:“失败”(由于亚行不在电话里找到应用程序)

因此,我不在虚拟机/仿真器调试。我有一个关系没有根本没有应用程序的痕迹,我不能从Eclipse中构建应用程序的装置。

谢谢你

 

最佳答案 (Best Answer)

This may seem odd, but my pointy-haired boss just had this issue and tried everything we could think of. Just would NOT install due to the INSTALL_FAILED_UID_CHANGED error.

He uninstalled some other apps (games) and suddenly it would install. Maybe it is an issue of disk space on internal card? Dunno, but worth a try when someone else hits it.

这可能看起来很奇怪,但个人秃头老板就有这个问题,尝试了全部咱们能想到的。就不会因为错误的install_failed_uid_changed。

他被其余一些应用程序(游戏),忽然它将安装。多是磁盘空间内部卡的问题?不知,但值得一试,当别人打它。

答案 (Answer) 2

I can solve this like below without rooting on my Nexus 5.

  • Push your app to /sdcard/
  • adb push test.apk /sdcard/
  • adb shell
  • adb shell pm install -l /sdcard/test.apk

-l option means - pm install: installs a package to the system. Options: -l: install the package with FORWARD_LOCK.

我能解决这个像下面没有生根在个人Nexus 5。

  • 把你的应用程序/ sdcard /
  • 亚行将test.apk / sdcard /
  • 亚行壳
  • 亚行壳时安装L / sdcard / test.apk

我选择指PM的安装:安装软件包系统。选项: L:安装包。

答案 (Answer) 3

First time this happened I tried installing from eclipse, from command line etc.... Everything failed so I did a factory reset which then worked.

24 hours later it happened again.

Not wanting to do another factory reset, I tried all the same things again to no avail.

Lastly I tried downloading our current app from the appstore, which miraculously worked.

I then used adb to reinstall.

So if you have a version of your app in the app store, try installing that to get something on your phone, then do a reinstall "adb -d install -r $PACKAGE.apk

Hope this helps someone.

第一次发生这种事我试着安装Eclipse,从命令行等……一切失败,因此我作了一个工厂复位,而后工做。

24小时后,它再次发生。

不想作另外一个工厂复位,我想一样的事情没有用。

最后,我试着从AppStore下载咱们当前的应用程序,它奇迹般地工做。

而后我用亚行重装。

因此若是你在应用商店里有一个本身的应用程序版本,安装,试着获得的东西在您的手机,而后作一个从新安装“亚行- D - R $ package.apk安装

但愿这有助于人。

答案 (Answer) 4

Here are some other things to check/try that are safe to do:

  • Make sure your package name is 100% unique and not colliding with another app. You could temporarily change it to test.
  • Try powering your phone off and then back on to clear data caches.
  • Try a soft reset for your device (which might be the same as powering off/on).

这里有一些其余的东西来检查一下,是安全的吗:

  • 确保你的包的名称是100%个独特的和不碰撞另外一个应用程序。你能够暂时改变它的测试。
  • 尝试为您的手机关机而后从新明确数据高速缓存。
  • 尝试为你的设备软复位(这多是同断电/上)。

答案 (Answer) 5

This (or some other magic) helped me:

adb shell pm clear MY_PACKAGE_NAME

这个(或其余一些魔法)帮助我:

adb shell pm clear MY_PACKAGE_NAME

答案 (Answer) 6

This is because of if you have install the app with same package name. So try to remove that one.

这是由于若是你有安装程序相同包名。因此尝试删除一个。

答案 (Answer) 7

I could only fix this by rooting. I know you don't want to do that, but it worked for me. I downloaded Titanium Backup then found my uninstalled app crossed out in the list on Titanium Backup. I couldn't get rid of that crossed out one until I went to Batch Actions then Remove orphan data. That allowed me to re-install my app and it worked well.

我只能经过生根解决这个。我知道你不想这样作,但它为我工做。我下载了钛备份而后发现个人卸载程序删去了钛备份列表。我没法摆脱,划掉一直到我去那批行动消除孤儿数据。让我从新安装个人应用程序和它的工做。


 

相关文章
相关标签/搜索