当我在设备 Redmi 3s prime 中安装我的 Android 应用程序时出现错误,并且它正在使用 genymotion 模拟器 [英] I am getting error when i install my Android app in device Redmi 3s prime, and it is working on genymotion emulator

查看:25
本文介绍了当我在设备 Redmi 3s prime 中安装我的 Android 应用程序时出现错误,并且它正在使用 genymotion 模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了这个错误:

$ adb 推送F:\skylixwork\CollagePhoto\app\build\outputs\apk\app-debug.apk
/data/local/tmp/com.collagephoto java.io.IOException: 一个现有的连接被远程主机强行关闭
出错时安装 APK

$ adb push F:\skylixwork\CollagePhoto\app\build\outputs\apk\app-debug.apk
/data/local/tmp/com.collagephoto java.io.IOException: An existing connection was forcibly closed by the remote host
Error while Installing APK

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

Installation failed with message INSTALL_CANCELED_BY_USER. 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)

启用开发者模式 - 在您的手机中,进入设置、关于手机并点击 MIUI 版本 7 次.您会看到一个弹出窗口,显示您现在是一名开发者.

enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.

返回设置、其他设置、开发人员选项并启用 USB 调试.

Go back to Settings, Additional settings, Developer options and enable USB Debugging.

将您的手机连接到您的 PC/Mac 并在手机上授权您的计算机

Connect your phone to your PC/Mac and on the phone authorize your computer

返回开发者选项,向下滚动找到开启 MIUI 优化并禁用它.您的手机将重新启动

go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted

解决方案:- (2)

启用开发者模式 - 在您的手机中,进入设置、关于手机并点击 MIUI 版本 7 次.您会看到一个弹出窗口,显示您现在是一名开发者.

enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.

返回设置、其他设置、开发人员选项并启用 USB 调试.

Go back to Settings, Additional settings, Developer options and enable USB Debugging.

将您的手机连接到您的 PC/Mac 并在手机上授权您的计算机.

Connect your phone to your PC/Mac and on the phone authorize your computer.

返回开发者选项,向下滚动找到Install via USB:然后打开它.

go back to Developer options, scroll down to find Install via USB: and just turn on it.

这篇关于当我在设备 Redmi 3s prime 中安装我的 Android 应用程序时出现错误,并且它正在使用 genymotion 模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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