Error while executing: am start -n 异常处理

真机运行app发生如下错误

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

Error while Launching activity

解决:
1:打开Android studio里terminal输入:
2:adb uninstall 你的包名
3:回车,显示success即可

你可能感兴趣的:(报错)