Fix problems with Xiaomi phone not running Android Studio program

Source: Internet
Author: User

Reprinted from: Solve the problem of Xiaomi phone can't run Android Studio program

Problem description

After upgrading to the 2.3 version of Android studio, Xiaomi Mobile MIUI8 cannot run the Android studio program, reporting the following error:

Installation failed with message Failed to establish session.It is possible that this issue is resolved by uninstalling an existing version of apk if it is present, and then re-installing

Workaround set the option in Instant run in Android Studio to not select
    1. Locate the option File--settings--build,execution,deployment--instant run in Instant run according to the following path
    2. Remove the Select box for the Enable Instant Run to hot swap code/resource changes on deploy (default enabled).

    3. Click Apply, save the settings will be OK. It's time to run the program on the Xiaomi phone.

Turn off MIUI optimization in the developer mode of your phone

Go to the phone developer mode, at the bottom there is a Enable MIUI optimization option, turn off this option will prompt to restart the phone, choose to shut down and restart the restart, run our program again, you can run on the phone.

PS: The first method is to see a friend say in the water group, I tried to find the perfect solution to the problem, thanks to the friend's help. It also shows how important water is in the group, haha. In this way, hope to help the needy friends.

Fix problems with Xiaomi phone not running Android Studio program

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.