更新Android Studio到3.2.1后发现新建的项目连真机不能正常启动并报错
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
找了很久发现是Instant Run 引起的
进入Preferences—>Build,Execution,Deployment—>Instant Run

将Enable instant run to hot swap code/resource changes on deploy的勾去掉
一切正常了
更新Android Studio至3.2.1版本后,遇到新建项目无法在真机上正常启动的问题,并出现java.lang.RuntimeException错误。通过禁用Instant Run功能解决了此问题。
5129

被折叠的 条评论
为什么被折叠?



