Error while executing: am start -n 异常处理
程序员文章站
2022-04-25 07:49:46
...
真机运行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即可
下一篇: Spring boot jpa 复合主键