Uninstalling apks from emulator

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Uninstalling apks from emulator

Postby Draffodx » Wed Nov 12, 2008 2:51 pm

I'm creating an application for android and it was working fine until I went to run a new version of the application in the emulator, it says the apt already exists then attempts to reinstall it which fails because the original source was different.

It says I have to do a full uninstall, unfortunately I cant uninstall through the command prompt because in college the firewall blocks me from downloading the android plugin for eclipse so I have to run it off an external hard drive which i cant use the command prompt on.

So I was wondering is there any other way to uninstall apk's from the emulator or am i going to have to move everything to the hard drive of my laptop and start again?
Draffodx
Master Developer
Master Developer
 
Posts: 205
Joined: Wed Nov 12, 2008 2:31 pm

Top

Postby MrSnowflake » Wed Nov 12, 2008 3:05 pm

You can uninstall it from the command line:
Code: Select all
adb uninstall <fullyqualifiedpackagename>
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby Draffodx » Wed Nov 12, 2008 6:32 pm

Thanks Very Much!
Draffodx
Master Developer
Master Developer
 
Posts: 205
Joined: Wed Nov 12, 2008 2:31 pm

Postby Sweevo » Wed Nov 12, 2008 9:33 pm

That fails sometimes - but it's always possible to do something like

rm -r ~/.android/*

to delete *everything* and start with a brand new emulator

(at least, that's the folder on a Mac, not sure where it would be on a windows installation)
Sweevo
Developer
Developer
 
Posts: 35
Joined: Thu Oct 16, 2008 9:27 am

Postby MrSnowflake » Wed Nov 12, 2008 9:38 pm

Sweevo wrote:That fails sometimes - but it's always possible to do something like

rm -r ~/.android/*
That's probably because user.img is there. There's a command-line option to clear the emulator.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 6 guests