zoukankan      html  css  js  c++  java
  • 解决小米手机Android Studio安装app 报错的问题It is possible that this issue is resolved by uninstalling an existi

    问题描述

    Android Studio升级到2.3版本之后,小米手机MIUI8不能运行Android Studio程序,报如下错误:

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




    解决方法

    设置Android Studio 中Instant Run中的选项为不选中

    1. 根据以下路径,找到Instant Run中的选项 
      File —— Settings——Build,Execution,Deployment——Instant Run
    2. 将Enable Instant Run to hot swap code/resource changes on deploy(default enabled)的选择框取消。





    3.点击Apply,保存设置就OK了。

    在手机的开发者模式中关闭MIUI优化

    进入到手机的开发者模式,在最下面有一个启用MIUI优化选项,关闭这个选项会提示重启手机,选择关闭并重启重新启动后,再次运行我们的程序,就可以在手机上运行了。



  • 相关阅读:
    云风版协程库源代码分析
    取消勾选use androidx.* artifacts
    Linux编程之信号
    Linux编程之错误代码
    git身份验证失败清除密码缓存
    实现可执行的so动态链接库
    同步以及异步connect
    STM32系列芯片命名规范
    QtAV的编译方法
    汇编文件后缀 .s 与 .S
  • 原文地址:https://www.cnblogs.com/ldq2016/p/7993030.html
Copyright © 2011-2022 走看看