Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Crystal Ball installation failed

I use dropbox a lot for my coding. My dropbox has the same path on both my laptop and desktop to allow for developing on both machines. This works great for most of my work, of course there are issues every so often, but usually nothing insurmountable. I'm down to the last stage of the crystal ball app and was finishing up on my laptop tonight. I fire up eclipse and go to run the app on my phone and get the following: [2012-12-17 17:45:49 - Crystal Ball] Re-installation failed due to different application signatures. [2012-12-17 17:45:49 - Crystal Ball] You must perform a full uninstall of the application. WARNING: This will remove the application data! [2012-12-17 17:45:49 - Crystal Ball] Please execute 'adb uninstall com.example.crystal.ball' in a shell. [2012-12-17 17:45:49 - Crystal Ball] Launch canceled!

easy enough, I should be able to go into my phone and uninstall the app and run again. However I do not see in my list of apps.

If I try to remove in ADB using: rm -r com.example.crystal.ball

it says no such directory (I also tried with apk on the end). Any idea how to fix this? thanks.

3 Answers

fixed. I connected to the device via AirDroid and was going to see if I could manually install the apk.
However top of the app list in AirDroid was the crystal ball app. I uninstalled and reran the project from eclipse and it ran fine. any idea how to prevent this in the future so I don't have to connect in and uninstall when switching machines? Or is this how it will be and the price to pay for being mobile?

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Glad you got it working! The problem is because Eclipse uses a machine-specific keystore to sign apps for debugging on a phone. I talk about keystores in Stage 6, which it sounds like you're about to check out!

One possible solution is to copy your debug keystore to Dropbox, too.

thanks. I read about the keystore, but I didn't realize I could just move it and define a new location.