Error while executing: am start -n "com.app.yxsoft/com.baby.grow.ui.sys.SplashActivity" -a androi...

$ 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

修改代码之后,点击运行,AndroidStudio没有进行重新编译,而是提示no changes to deploy,然后启动修改前的那个APP,代码修改完全没用。这个问题初步判断是由于AndroidStudio的Instant run功能出错导致的。目前只能在settings->Build,Execution,Deployment->Instant Run中将Enable Instant Run to hot swap code/resource changes on deploy选项的勾点掉。这是默认启用的。点掉之后就正常了,每次点击运行都会重新安装APP。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容