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.

我只能經過生根解決這個。我知道你不想這樣作,但它爲我工做。我下載了鈦備份而後發現個人卸載程序刪去了鈦備份列表。我沒法擺脫,劃掉一直到我去那批行動消除孤兒數據。讓我從新安裝個人應用程序和它的工做。


 

相關文章
相關標籤/搜索