使用小米 mi5 MIUI 8 Android Studio 调试 [英] Debug with Xiaomi mi5 MIUI 8 Android Studio

查看:32
本文介绍了使用小米 mi5 MIUI 8 Android Studio 调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从 Android Studio 启动应用.当我点击运行"时,我选择了我的设备:

I cannot launch app from Android Studio. When i click "run", I select my device:

出现如下消息:

但事实并非如此,该应用程序未安装在设备中.在运行"控制台中,出现以下内容:

But it is not true, the app is not installed in the device. In the "run" console, appears the following:

04/22 15:53:08: Launching app
$ adb install-multiple -r C:\Users\User\AndroidStudioProjects\some.apk
$ adb shell pm uninstall com.package.app
Unknown failure (Failure - not installed for 0)
Error while Installing APK

我已在设备中激活 USB 调试.

I have activated USB debugging in the device.

推荐答案

尝试从开发者选项中关闭MIUI 优化".我已经更新到 MIUI 8.2 并遇到了同样的问题,在这里找到了解决方案并且可以正常工作.祝你好运!

Try TURN OFF "MIUI Optimization" from developer options. I've updated to MIUI 8.2 and encountered same problem, found the solution here and it works. Good luck!

http://c.mi.com/thread-171377-1-0.html[题外话] [设备团队] 修复无法从 Android Studio 调试 Android 应用程序

http://c.mi.com/thread-171377-1-0.html [Off-Topic] [Device Team] Fix For Unable to Debug Android App From Android Studio

这篇关于使用小米 mi5 MIUI 8 Android Studio 调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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