AndroidStudio运行apk时,vivo部分手机出现 解析软件包错误 提示,安装失败;
解决方法:
Androidstudio ——> File ——> Settings ——> Build,Execution,Deployment ——>Instant Run 将标注的 Enable Instant.... 取消选中 点击 apply OK 就可以了
使用 Instant Run(即时运行)能做到一边修改代码,一边在模拟器看到 修改代码后的结果,但是又会引发很多问题,上边就是出现的问题,下面附上几个碰到的问题:
1.代码已经修改了,点击运行的时候还提示 No changes To Deploy;
解决方法: 取消勾选 Enable Instant Run to hot swap code/resource changes on deploy (default enabled)
2.Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
解决方法: 取消勾选 Enable Instant Run to hot swap code/resource changes on deploy (default enabled) ,还报错,就选择 Bulid下的 clean project
3. 使用了instant