Pages Navigation Menu

Coding is much easier than you think

Re-installation failed due to different application signatures – Android Error

 
Cause
Mainly this error occur for same application sign.If you port your app to another device, there may be a problem with keystores. it’€™s called debug.keystore and located in %USER_HOME%/.android/ folder. It happens because eclipse tries to push apk with re-install key.

The digital signature is driven by a signing key that exists on the machine that signs the app. If Developer A compiles an app using the standard debug key and installs it in an emulator, then tries installing some other variation of the app — one signed with a production key, one signed with Developer B’s debug key, etc. — in the same emulator, you will get that error.
 
** UPDATE: Android Complete tutorial now available here.
 
Solution 1:

1.Share debug.keystore between various development pc€™s (if your project been ported to another PC)
2.Uninstall the application from your mobile if you load it already.
3.To uninstall goto settings->application->manage application.
4.Run the application again and choose the mobile
5.You can also run this command adb -d uninstall

Solution 2

Start up the emulator by running or debugging the application, do a full apk uninstall via ADB (Android Debug Bridge), and then re-install, do this by following the steps below:
1. Locate adb found in c:{android sdk location}platform-toolsadb.exe
2. Open the command prompt in this location
3. RunDebug your app in Eclipse to start the emulator and wait for the error to be outputted (now you know the device has settled and the apk-install was attempted
4. Execute the following command from the command prompt window you opened in step 2 , adb uninstall {name of your apk e.g. com.myapp}
5. Once the success€ message is displayed in command prompt then re-install the apk. The quickest way to re-install from this point is to open the debug perspective in Eclipse while you are still debugging from step 3 then in the Debug window right-click on the application and click Relaunch, this will re-install the APK with the correct key.

Solution 3

Share a single debug.keystore across multiple computer
Copy the default debug.keystore from the one machine to the other machine(s) into a known location.
To get the location of the default debug.keystore:
1. Open Eclipse click window->preferences
2. Go to android->build the location in the €œDefault debug keystore textbox
3. Once you have shared/copied the debug.keystore onto the various computers update the eclipse setting €œCustom debug keystore€ to point to this debug.keystore .

About Gokul


I am very much interested in android and Wicket framework. A core android developer and working in android native app development and responsive web mobile design. I have also worked in wicket fame work and java web development. I will keep on updating you about android and wicket framework and answer your query.

    %d bloggers like this: