8
[2013-04-06 14:48:32 - SplitPaneLayout-Demo] Android Launch!
[2013-04-06 14:48:32 - SplitPaneLayout-Demo] adb is running normally.
[2013-04-06 14:48:32 - SplitPaneLayout-Demo] Performing com.mobidevelop.widget.Demo activity launch
[2013-04-06 14:48:32 - SplitPaneLayout-Demo] Automatic Target Mode: using device '015d188469381013'
[2013-04-06 14:48:32 - SplitPaneLayout-Demo] Uploading SplitPaneLayout-Demo.apk onto device '015d188469381013'
[2013-04-06 14:48:32 - SplitPaneLayout-Demo] Installing SplitPaneLayout-Demo.apk...


[2013-04-06 14:48:34 - SplitPaneLayout-Demo] Installation error: INSTALL_FAILED_UID_CHANGED
[2013-04-06 14:48:34 - SplitPaneLayout-Demo] Please check logcat output for more details.
[2013-04-06 14:48:34 - SplitPaneLayout-Demo] Launch canceled!
pb2q
  • 58,613
  • 19
  • 146
  • 147
user1891910
  • 919
  • 3
  • 18
  • 45

13 Answers13

12

Just delete "/data/data/your.package.name" on your device

sourabh
  • 418
  • 4
  • 8
5

If your device is not rooted and restarting doesn't work, I guess changing your package name is a good option if you're just debugging. Worked for me !

mayurvir
  • 337
  • 4
  • 14
  • Unreal, but it works for me) But I did not understand why this happen and renaming of package solve an issue. But what I should to do to away this error in the future when I will update an application on Google Play with OLD PACKAGE NAME? – Dimon Sep 14 '14 at 23:07
  • This worked for me also, but I'd like to understand what is actually happening here and fix it properly. Simply uninstalling didn't work. – intrepidis Apr 19 '15 at 07:07
1

Just manually Uninstall your application from Setting->Application->Manage Application->Your Application This was getting because some data or string was in used so the system can't able to delete it that's why getting this error.

If still getting this problem then close your emulator then start your emulator with wiping your data.

here is more detail regarding this

https://stackoverflow.com/a/12662787/760489

https://stackoverflow.com/a/11444895/760489

Community
  • 1
  • 1
Pratik
  • 30,639
  • 18
  • 84
  • 159
  • 6
    I already uninstalled my application,but still I am getting errors – user1891910 Apr 06 '13 at 10:16
  • I have this problem on my phone, which is not rooted. The methods above does not work, because you need root access to delete in data/data And the app was successfully uninstalled with adb uninstall. – halxinate Apr 17 '13 at 23:15
1

If you were just testing your app like me, then I just renamed by app name from xyz to abc and then deploy it again on your mobile device (mine was nexus 7 tab) then all worked fine !! :)

mayavi
  • 11
  • 1
1

Try deleting Cached Data under Settings -> Storage, this will clear all cached App data at once, but it does the job.

Moïze
  • 707
  • 8
  • 16
1

Please check if you have added android:sharedUserId in your manifest. Remove it if it is not required. That should fix the issue.

Gautam Jain
  • 6,789
  • 10
  • 48
  • 67
0

Restart your device and clean the project. It happens sometime when we uninstall the application and try to install it again without restarting device.

0

I am getting the same error while working with emulator. I just delete that emulator and made a new emulator and install the apk into new emulator and it worked. Hope it will help someone.

Nikhil Kumar
  • 2,618
  • 3
  • 21
  • 24
0

This happens because you still have the old UID stored in the Selendroid app in your phone. Go to Application Manager and uninstall the app called "Selendroid" and retry again. That should fix your problem.

0

rm -rf /data/data/your.package.name works for me.

You need to be super user. For me, since I use CyanogenMod 11.0, nexus, "su" in console let me switch to super mode.

paul xiong
  • 19
  • 6
0

I followed most steps here eventually changed the gradle version i was working with to

'com.android.tools.build:gradle:1.0.0-rc3'

And it worked

Thanks

shimi_tap
  • 7,822
  • 5
  • 23
  • 23
0

After a lot of research I could fix this issue just by changing the ApplicationId. This process does not require root or factory reset and wiping data in /data folder.

  1. right click on the root folder of your project.
  2. Click "Open Module Setting".
  3. Go to the Flavours tab.
  4. Change the applicationID to whatever package name you want. Press OK.

Credits to this answer https://stackoverflow.com/a/28336400/4657700

Community
  • 1
  • 1
Neanderthal
  • 937
  • 2
  • 9
  • 25
0

Easiest thing worked for me was to create a new emulator.

MobileAppDeveloper
  • 1,048
  • 2
  • 16
  • 27