Android调试时报错\"Re-installation failed due to different....
洛央虲 2011-03-08 02:19:21 Android调试时报错\"Re-installation failed due to different application signatures\"怎么解决
Android调试时报错\"Re-installation failed due to different application signatures\"怎么解决
下面是控制台的情况:
[2011-03-08 13:32:00 - Activity04] ------------------------------
[2011-03-08 13:32:00 - Activity04] Android Launch!
[2011-03-08 13:32:00 - Activity04] adb is running normally.
[2011-03-08 13:32:00 - Activity04] Performing mars.activity.FirstActivity activity launch
[2011-03-08 13:32:00 - Activity04] Automatic Target Mode: launching new emulator with compatible AVD \'1.6\'
[2011-03-08 13:32:00 - Activity04] Launching a new emulator with Virtual Device \'1.6\'
[2011-03-08 13:32:08 - Activity04] New emulator found: emulator-5554
[2011-03-08 13:32:08 - Activity04] Waiting for HOME (\'android.process.acore\') to be launched...
[2011-03-08 13:33:04 - Activity04] HOME is up on device \'emulator-5554\'
[2011-03-08 13:33:04 - Activity04] Uploading Activity04.apk onto device \'emulator-5554\'
[2011-03-08 13:33:04 - Activity04] Installing Activity04.apk...
[2011-03-08 13:33:14 - Activity04] Re-installation failed due to different application signatures.
[2011-03-08 13:33:14 - Activity04] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-03-08 13:33:14 - Activity04] Please execute \'adb uninstall mars.activity\' in a shell.
[2011-03-08 13:33:14 - Activity04] Launch canceled!
网上搜了一些解决方案 但是不懂怎么操作
以下是网上找到的方法。很多地方都指示说是这样做,但是实在不懂怎么回事儿。请懂的前辈指导下。
这个错误的主要原因是ADT插件赋予APK文件debug签名时数字效验出错可能因为ADT版本不同、APK不是这台计算机生产的在模拟器或Android手机上, 解决的方法可以直接在真机中删除该程序,重新执行即可,或在shell中直接adb uninstall <package name>后重新安装。