当我在设备红米3s prime上安装我的安卓应用时,我得到了错误,它在genymotion模拟器上工作。[英] I am getting error when i install my Android app in device Redmi 3s prime, and it is working on genymotion emulator

本文是小编为大家收集整理的关于当我在设备红米3s prime上安装我的安卓应用时,我得到了错误,它在genymotion模拟器上工作。的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我有这个错误:

$ adb推 f:\ skylixwork \ collagephoto \ app \ build \ outputs \ apk \ app-debug.apk
/data/local/tmp/com.collagephoto java.io.io.ioexception:现有 连接被远程主机强行关闭
错误时 安装apk

Message INSTALL_CANCELED_BY_USER安装失败. 如果存在如果存在APK,然后重新安装.

,可以通过卸载APK的现有版本来解决此问题.

警告:卸载将删除应用程序数据!

您想卸载现有应用程序吗?

推荐答案

我找到了问题的答案.

解决方案: - (1)

启用开发人员模式 - 在手机中,转到设置,关于电话,然后单击MIUI版本7次.您会看到一个弹出窗口,说您现在是开发人员.

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

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

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

解决方案: - (2)

启用开发人员模式 - 在手机中,转到设置,关于电话,然后单击MIUI版本7次.您会看到一个弹出窗口,说您现在是开发人员.

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

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

回到开发人员选项,向下滚动以查找Install via USB:然后打开它.

在此处输入图像说明

其他推荐答案

工作!

  1. 启用开发人员模式 - 在手机中,转到设置,关于电话,然后单击MIUI版本7次.您会看到一个弹出窗口,说您现在是开发人员.

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

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

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

  5. 我以这种方式解决了我的问题.

其他推荐答案

我正在使用小米redmi Note 4x ,在通过USB 安装后,关闭 MIUI Optimization 是主要的开发人员选项的目标是通过USB运行应用程序!这对我有用

本文地址:https://www.itbaoku.cn/post/1937943.html

问题描述

I'm having this error:

$ 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

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?

推荐答案

I found the answer for my question.

solution :- (1)

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.

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

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

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

solution :- (2)

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.

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

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

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

enter image description here

其他推荐答案

Works !

  1. 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.

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

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

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

  5. I solved my issue this way.

其他推荐答案

I'm using xiaomi redmi note 4x and after Turning on install via USB, Turning off MIUI optimization is the main objective from developer option to run app via USB! This works for me