* - 错误信息 *
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?
方法一:
1、
2、
改为’com.android.tools.build:gradle:2.2.3’即可。再次运行时可能提示更新build:gradle此时选择不更新,否则改之后的’com.android.tools.build:gradle:2.2.3’又变回’com.android.tools.build:gradle:2.3.1’了。亲测可以。欢迎借鉴
方法二:
此时需要在开发者模式中关闭MIUI优化!
但是在经过一段体验之后发现系统会稍微有些卡顿,而且应用的权限有时会丢失,不提倡。
本文针对安装失败时出现的“Failed to establish session”错误信息提供了两种解决方案。第一种方案建议更改gradle版本为2.2.3,并且在后续运行过程中避免更新此版本。第二种方案涉及在开发者模式中关闭MIUI优化功能,但可能会导致轻微卡顿及权限丢失问题。
4277

被折叠的 条评论
为什么被折叠?



