$ 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
修改代碼之后,點(diǎn)擊運(yùn)行,AndroidStudio沒有進(jìn)行重新編譯,而是提示no changes to deploy,然后啟動(dòng)修改前的那個(gè)APP,代碼修改完全沒用。這個(gè)問題初步判斷是由于AndroidStudio的Instant run功能出錯(cuò)導(dǎo)致的。目前只能在settings->Build,Execution,Deployment->Instant Run中將Enable Instant Run to hot swap code/resource changes on deploy選項(xiàng)的勾點(diǎn)掉。這是默認(rèn)啟用的。點(diǎn)掉之后就正常了,每次點(diǎn)擊運(yùn)行都會(huì)重新安裝APP。