安卓手机调试出现Error type 3 Error: Activity class {com.vhome.chat/com.xxx.xxx.XXXActivity} does not exists!

今天调试安卓程序,电脑突然死机了,然而程序正在往手机上install,死机没办法,电源键强制重启,上来后再次install到手机上就提示了Error type 3 Error: Activity class {com.vhome.chat/com.xxx.xxx.XXXActivity} does not exists!错误。百度多处之后都是跟applicationId相关的,然而我代码从始至终根本没变化过。所以最后询问老师得出是包未卸载完全冲突导致,最后成功解决,在此跟大家分享,我顺便记录一下!

1.配置adb的环境变量

安卓手机调试出现Error type 3 Error: Activity class {com.vhome.chat/com.xxx.xxx.XXXActivity} does not exists!

安卓手机调试出现Error type 3 Error: Activity class {com.vhome.chat/com.xxx.xxx.XXXActivity} does not exists!

选择自己的adb.exe  没有的可去下载  下载链接https://adbshell.com/downloads

添加路径就行,我的放在了F:\a_shi_xun\adb\

安卓手机调试出现Error type 3 Error: Activity class {com.vhome.chat/com.xxx.xxx.XXXActivity} does not exists!

2.win+R 输入cmd进入cmd.exe

3.进入你的adb的路径

安卓手机调试出现Error type 3 Error: Activity class {com.vhome.chat/com.xxx.xxx.XXXActivity} does not exists!

4.最后输入你的程序的包名就好了

安卓手机调试出现Error type 3 Error: Activity class {com.vhome.chat/com.xxx.xxx.XXXActivity} does not exists!