最新消息:VPS服务器又从fzhost.net换回Linode了,主题仍用朋友推荐的大前端D8

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

Android crifan 207浏览 0评论

【背景】

之前用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,一般都可以解决。

转载请注明:在路上 » 【整理】ADT中调试app:竟然说是非法apk

发表我的评论
取消评论

表情

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

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
20 queries in 0.239 seconds, using 10.00MB memory