错误提示:
$ adb shell am start -n "com.app.yxsoft/com.baby.grow.ui.sys.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "com.app.yxsoft/com.baby.grow.ui.sys.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.app.yxsoft/com.baby.grow.ui.sys.SplashActivity }
Error type 3
Error: Activity class {com.app.yxsoft/com.baby.grow.ui.sys.SplashActivity} does not exist.
Error while Launching activity
首先查看系统设置所有App内是否删除干净(包括工作App,android10,11经常出现)
如果已删除
App没有卸载干净引起
以Mac为例:
启动命令窗口(前提配置adb全局变量)
open -e .bash_profile查看文件是否有添加全局变量
export ANDROID_HOME=/Users/chuanmo/Library/Android/sdk
export PATH={ANDROID_HOME}/tools
export PATH={ANDROID_HOME}/platform-tools
source .bash_profile
adb查看是否成功
adb uninstall “Application id”
网友评论