Android Studio:应用程序安装失败 [英] Android Studio: Application Installation Failed

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

问题描述

我一直在尝试学习如何使用 Android Studio,但是当我尝试运行其中一个示例程序时,我收到了以下错误消息:

I've been trying to learn how to use Android Studio but when I attempted to run one of the sample programs I get this error message:

安装失败,消息为空.可以通过卸载现有版本的 apk(如果存在)然后重新安装来解决此问题.

Installation failed with message null. 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?

我已经尝试在另外 5 个示例程序上执行此操作,但所有示例程序都出现此错误.有大佬知道怎么解决吗?

I've tried to do this on 5 more sample programs and all of them give me this error. Does anyone know how to solve this?

推荐答案

我使用的是 Redmi 3s 手机.我遇到了同样的问题.

I'm Using Redmi 3s mobile. I got same problem.

解决方案:此问题在运行 MIUI 8 的小米手机上很常见.这可以通过从设置"应用中的开发人员选项"关闭 MIUI 优化来解决.然后重新编译应用程序,瞧它工作正常.

Solution: This issue is common on Xiaomi phones running MIUI 8. This can resolved by turning off MIUI optimizations from Developer Options in Settings app. Then recompile the app and voila it works.

Settings --> Additional settings --> Developer options --> Turn Off MIUI optimization

Settings --> Developer options --> Turn Off MIUI optimization

这篇关于Android Studio:应用程序安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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