无法通过USB调试安装android应用程序 [英] Unable to install android app via usb debugging

查看:2452
本文介绍了无法通过USB调试安装android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个老问题,但我想在Redmi注释4中第一次安装我的应用程序。
每当我尝试安装它时,都会显示一个对话框,说明..

I know this is an old question but I am trying to install my app the very first time on Redmi note 4. Whenever i try to install it displays a dialog saying..

安装失败并显示消息无法建立会话。
这个问题有可能通过卸载已存在的apk版本来解决,然后重新安装。
警告:卸载将删除应用程序数据!
并在此后发生错误。

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! And it gives error after this.

此应用程序未安装,我已清除缓存,重建项目,重新启动手机,但没有任何工作。

This app is not installed before,I have cleared cache,rebuild the project,restarted my phone but nothing is working.

推荐答案

如何禁用Miui优化

这个问题发生在我的手机上,这是Miui 8上运行的小米手机。关闭Miui Optimizations on Developer Settings ,重新启动手机重新编译它的应用程序。

This issue was happening on my phone which is Xiaomi Phones running on Miui 8. After turning off Miui Optimizations on Developer Settings, restarting the phone a recompiling the application it worked.

了解更多详情: android gradle:2.3.0安装apk失败

这篇关于无法通过USB调试安装android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆