Android DELETE_FAILED_INTERNAL_ERROR 问题

1
2
3
4
Installation failed with message Failed to establish session.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?

点击确定 提示:DELETE_FAILED_INTERNAL_ERROR,还是无法安装,哪怕把手机上已经安装了的卸载也没用。

解决方式:
1、app\build\intermediates文件夹直接删除或者app\build\intermediates\split-apk

2、关闭即时运行File-Settings-Build-Instant Run

3、如果是小米手机,进入其开发者模式,在最下面有一个启用MIUI优化选项,关闭重启即可。