android-studio - Android Studio运行app错误 Error while Launching activity

查看:1109
本文介绍了android-studio - Android Studio运行app错误 Error while Launching activity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

更新到AS2.1之后发生的,在发生这个错误后再次尝试运行,又会成功运行。实在不知道是什么原因。
错误信息
$ adb shell am start -n "com.chamlhy.activitydemo/com.chamlhy.activitydemo.EmptyActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER

Unexpected error while executing: am start -n "com.chamlhy.activitydemo/com.chamlhy.activitydemo.EmptyActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER

Error while Launching activity

解决方案

clean一下project

这篇关于android-studio - Android Studio运行app错误 Error while Launching activity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆