androidandroid-studiousb-debuggingxiaomi

Xiaomi Redmi Note 4X "Install via usb" throws "Insert your SIM card"


I'm using a Xiaomi Redmi Note 4X for my Android development.

Without "Install via USB" option, Android Studio throws:

Installation failed with message INSTALL_CANCELED_BY_USER

Solution for this is enabling "Install via USB", but when I try to enable this option, phone throws Toast message "Insert your sim card". Is there any way to simulate SIM card, or just making this work?


Solution

  • To enable "install via usb" you have to insert sim card.

    After enabling "install via usb" remove sim card then it will work without sim card also.