最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】ADT中调试android项目失败:Please execute ‘adb uninstall xxx’ in a shell

Android crifan 3394浏览 0评论

【问题】

ADT中,想要调试的时候:

do debug for apk

出错:

[2013-03-06 13:49:40 – USBDemoTest] Performing sync
[2013-03-06 13:49:40 – USBDemoTest] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2013-03-06 13:49:44 – USBDemoTest] Uploading USBDemoTest.apk onto device ‘c080846d3761911’
[2013-03-06 13:49:44 – USBDemoTest] Installing USBDemoTest.apk…
[2013-03-06 13:49:45 – USBDemoTest] Re-installation failed due to different application signatures.
[2013-03-06 13:49:45 – USBDemoTest] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2013-03-06 13:49:45 – USBDemoTest] Please execute ‘adb uninstall usb.example.usbdemotest’ in a shell.
[2013-03-06 13:49:45 – USBDemoTest] Launch canceled!

无法启动安卓虚拟机AVD。

 

【解决过程】

1.所以去打开cmd,切换到当前项目所在位置,去执行:

D:\tmp\tmp_dev_root\android\android_root\USBDemoTest>adb uninstall usb.example.usbdemotest
Success

然后继续重新调试,然后就可以正常安装并调试了。

log为:

[2013-03-06 13:52:02 – USBDemoTest] Performing sync

[2013-03-06 13:52:02 – USBDemoTest] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.

[2013-03-06 13:53:39 – USBDemoTest] Uploading USBDemoTest.apk onto device ‘c080846d3761911’

[2013-03-06 13:53:39 – USBDemoTest] Installing USBDemoTest.apk…

[2013-03-06 13:53:41 – USBDemoTest] Success!

[2013-03-06 13:53:41 – USBDemoTest] \USBDemoTest\bin\USBDemoTest.apk installed on device

[2013-03-06 13:53:41 – USBDemoTest] Done!

[2013-03-06 13:54:09 – USBDemoTest] ——————————

[2013-03-06 13:54:09 – USBDemoTest] Android Launch!

[2013-03-06 13:54:09 – USBDemoTest] adb is running normally.

[2013-03-06 13:54:09 – USBDemoTest] No Launcher activity found!

[2013-03-06 13:54:09 – USBDemoTest] The launch will only sync the application package on the device!

 

不过,此处没有弹出AVD,是因为,我此处的项目,是拷贝别人的,没有新建那个对应的AVD。

所以,此处需要自己重新设置当前项目所使用的AVD,才可以的。

 

【总结】

由于更新了对应的当前android项目所依赖的一个库,导致了apk的签名变化了,导致重新调试apk需要你重新安装。

重新安装之前,需要先用adb去卸载旧的apk。

转载请注明:在路上 » 【已解决】ADT中调试android项目失败:Please execute ‘adb uninstall xxx’ in a shell

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
90 queries in 0.172 seconds, using 22.08MB memory