Android Studio 安装APP时,提示“Installation failed since the device possibly has stale dexed jars that don't match the current version (dexopt error). In order to proceed, you have to uninstall the existing application.”错误的解决方法如下:
1.AndroidStudio-> Build -> Clean Projects ;
2.AndroidStudio-> File -> Setting -> Build, Exception,Deployment -> Instant Run ->不要勾选[]Enable Instant Run to hot swap code/resource changes on deploy (default enabled)
3. 打开AVD Manager,选择对应的模拟器,更改设置,将Internal Storage从800MB改成1600 Mb, 并wiped data。
4.设置AVD Manager,Boot options 更改为Cold boot。
5. 最后上面的方法都试过了,还是不行的话,就换个模拟器吧。好吧,我换了个Nexus 9.