一:出现Session ‘app’: Error Launching activity,不能在真机上运行,解决办法是关闭instant run
在File->Settings->Build, Execution,Deployment找到Instant Run,将instant run前的选项去掉,
点击OK就可以了,重新编译运行app
二:必须打开手机的开发者调试,即使可以检测到设备,也应该确保手动打开
一:出现Session ‘app’: Error Launching activity,不能在真机上运行,解决办法是关闭instant run
在File->Settings->Build, Execution,Deployment找到Instant Run,将instant run前的选项去掉,
点击OK就可以了,重新编译运行app
二:必须打开手机的开发者调试,即使可以检测到设备,也应该确保手动打开