Android Studio中手机能连接上ADB不过一直跑不起来(或者应用出现短暂的白屏)
AS中手机能连接上ADB不过一直跑不起来(或者应用出现短暂的白屏),关闭这个选项Enable Instant Run to hot swap code/resource changes on deploy(default enabled)
-
路径:
Setting -> Build,Execution,Deployment -> Instant Run - Enable Instant Run to hot swap code/resource changes on deploy(default enabled)
-
简单说一下这个几个选项:
1:Enable Instant Run to hot swap code/resource changes on deploy (default enabled)
//启用即时运行 热交换代码/资源变化 部署(默认启用)2:Restart activity on code changes
//当代码变动时重启3:Show toasts in the running app when changes are applied
//当代码变动应用时弹出toast4:show Instant Run status notifications
//在notification里显示instant Run 的状态