使用Android Studio 真机运行debug时出现弹窗报错:
Installation failed with message Failed to finalize session:NSTALL_PARSE_FAILED_UNEXPECTED_EXCEPT。。。。。。。。。。。。。。等
解决办法:1:更改ndk版本:File—>Project Structure—>SDK Location—>Android NDK location
2.设置界面(File->Settings),如图所示把Instant Run(将Enable Instant Run to hot swap code/resource changes on deploy(default enabled)的选择框取消)关了即可,你会发现程序可以正常地运行在你的手机上了。而且如果以后你想用模拟器来测试程序,你再次打开Instant Run就好了。