美文网首页
Error while executing: am start

Error while executing: am start

作者: BBNO | 来源:发表于2019-06-01 16:02 被阅读0次
$ 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。

相关文章

网友评论

      本文标题:Error while executing: am start

      本文链接:https://www.haomeiwen.com/subject/uvwotctx.html