* - 错误信息 *
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优化!
但是在经过一段体验之后发现系统会稍微有些卡顿,而且应用的权限有时会丢失,不提倡。