【整理】ADT中调试app:竟然说是非法apk

【背景】

之前用ADT去调试android的app,结果出错:

竟然无法安装程序,说是非法apk:

[2013-11-26 17:22:53 - xxxxxx] Android Launch!
[2013-11-26 17:22:53 - xxxxxx] adb is running normally.
[2013-11-26 17:22:53 - xxxxxx] Performing com.zzz.yyyy.activities.MainActivity activity launch
[2013-11-26 17:22:55 - xxxxxx] Uploading xxxxxx.apk onto device '192.168.3.81:5555'
[2013-11-26 17:23:06 - xxxxxx] Installing xxxxxx.apk...
[2013-11-26 17:23:07 - xxxxxx] Installation failed due to invalid APK file!
[2013-11-26 17:23:07 - xxxxxx] Please check logcat output for more details.
[2013-11-26 17:23:07 - xxxxxx] Launch canceled!

 

如图:

adt error Installation failed due to invalid APK file

结果是旧的apk没有删除掉。

clean一下,

然后重新编译,重新调试,就可以了:

show launching mean can continue to debug app using adt

 

【总结】

遇到异常问题,多去尝试

clean后,重新build,一般都可以解决。



发表评论

电子邮件地址不会被公开。 必填项已用*标注

无觅相关文章插件,快速提升流量