Android Studio启动错误——Error: Activity class {} does not exist.Error while Launching activity

当Android Studio连接数据线安装调试APP时出现如下错误提示:

Error: Activity class {...Activity} does not exist
Error while Launching activity

原因:因为android studio认为你的项目还是运行在手机上的,可是你把他卸载掉了,它自然不知道,所以才会出现这种情况。

解决方案:

使用命令adb uninstall com.xx.xxx.xxx(包名)卸载apk,然后重新安装

查看adb命令相关:https://www.cnblogs.com/lkc9/p/11238451.html

猜你喜欢

转载自www.cnblogs.com/lkc9/p/11262074.html