Error while executing: am start -n "com.loyal888.blog/com.loyal888.blog.activity.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting

在华为手机上手动卸载debug版本的app后再次通过adb安装会报如下错误:

Error while executing: am start -n "com.loyal888.blog/com.loyal888.blog.activity.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.loyal888.blog/.activity.MainActivity }
Error type 3
Error: Activity class {com.loyal888.blog/com.loyal888.blog.activity.MainActivity} does not exist.

Error while Launching activity

解决办法: adb uninstall "包名" 

再次adb安装即可成功!

 

Error while executing: am start -n "com.loyal888.blog/com.loyal888.blog.activity.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting

上一篇:Android开发当中的JavaBean实现


下一篇:实验四《Android程序设计》实验报告封面