关闭instant run

Android Studio版本升级到2.3后,增加了instant run功能,对项目的build过程进行了优化,省去了一些不是特别重要的东西,会导致项目build生成的apk包变小,就无法把生成的apk包导出来安装到手机上,就算安装了也打不开。

解决方法:只要把as的instant run功能关掉就可以解决。
关闭instant run方法:Preferences-> Build,Exception,Deployment -> Instant Run ->关掉instant run,然后Apply就好了

猜你喜欢

转载自blog.csdn.net/samjustin1/article/details/76615775
run