安装错误:INSTALL_FAILED_UID_CHANGED没有根错误、INSTALL_FAILED_UID_CHANGED

2023-09-05 06:42:50 作者:与银河邂逅

我已经检查的计算器的所有其他问题一一解决,意见和答案。

我一直在运行,编译和调试我的应用程序了好几个月。但突然它开始使用我的Nexus发挥它时,会出现此消息在我的Eclipse。

MOBILE:

在我心里没有根! (这是一个Nexus的,我没有根,并且需要执行的根在其他#1的问题,所有的答案) 在该应用被卸载,没有一丝它在应用程序 由于我没有root权限,我不能访问到/ data / data文件夹,或/数据/本地或/数据 在我的不的知道问题将得到解决,将手机重置到出厂设置,但是,真诚的,我不能。

ECLIPSE:

我清理项目多次,重新启动Eclipse甚至更新 在我不能改变项目的名称(如一个解决方案建议),因为它是一个很长一段时间的项目,我不能改变它

控制台说:

在安装错误:INSTALL_FAILED_UID_CHANGED 请检查logcat的输出获取更多信息。 在启动取消!

LogCat中说:

在12月1日至五日:18:19.265:W / ActivityManager(761):未找到许可撤销内容提供商:文件:///data/local/tmp/MyApp.apk 在12月1日至五日:18:20.855:W / PackageManager(761):包无法安装在/data/app/com.myapp-1.apk

我可以安装,卸载其他APK /应用程序没有任何问题。所以它不是关于权限在/ data文件夹/子文件夹

控制台:

如果我尝试卸载(与-d或任何其它参数)的应用程序,它说:失败(因为亚行并没有发现在手机上的应用程序)

所以,我不能与虚拟机/仿真器进行调试。我有一个Nexus的无根性,没有一丝的应用程序,我不能构建Eclipse的应用程序的设备。

感谢您

解决方案

我在无根的Nexus有同样的问题 5 。我设法解决它的没有root访问权限,也没有出厂设置

有关此设备,我设法将设置来解决它 - >存储 - >其它并尝试删除有关错误的应用程序的任何文件(在我的情况,这是由机器人工作室和一个.db文件推一个.apk文件)。我也点击了缓存数据擦拭缓存中所有的应用程序。

我不知道到底是哪的两件事情引发的解决方案。你可能想尝试擦拭缓存数据之前删除其它一些文件,因为它似乎少矫枉过正。

这似乎是有一些从previous安装剩余的文件,这些文件并没有抹去与卸载(可能的在Android安装系统一个问题)。这些文件是不是没有root访问权限访问,因为它们是在/ data / local目录/文件夹。显然,为的Nexus 5的存储工具,有权限的文件夹下删除文件。

我不知道其他设备是否有一组类似的存储工具。

Genymotion安装APP提示 INSTALL FAILED问题

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

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.

MOBILE:

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 I do know problem would be solved resetting the phone to factory settings, but, sincerely, I can not.

ECLIPSE:

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:

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.

Thank you

解决方案

I had the same issue in my non-rooted Nexus 5. I managed to solve it without root access nor Factory reset.

For this device, I managed to solve it by going to Settings -> Storage -> Misc and try to delete any files related to the faulty app (in my case, an .apk that was pushed from Android Studio and a .db file). I also clicked on Cached data to wipe the cache for all apps.

I don't know exactly which of the two things triggered the solution. You probably want to try to delete some files in Misc before wiping the cached data, since it seems less of an overkill.

It seems to be that there were some remaining files from a previous installation which weren't wiped with the uninstall (probably an issue in the Android installation system). These files aren't accessible without root access, since they are under the /data/local/ folder. Apparently the Storage tools for the Nexus 5 have permission to delete files under that folder.

I don't know whether other devices have a similar set of storage tools.