If "install_failed_media_unavailable" is displayed, the solution is as follows:
1. Install the android USB driver. connect your mobile phone to your computer through a USB cable. The computer will automatically search for the driver and choose to install it at the specified location (you can find the usb_driver folder in the downloaded SDK for different Android versions, the path of the driver folder may be different ). If the SDK directory cannot be found or does not work, use the 91 assistant for automatic installation.
After the driver is installed, there is a similar device in the Device Manager (the premise is that your mobile phone is connected to the computer. if you remove the mobile phone at this time, the hardware in the red box will not be displayed. Why? The Device Manager manages devices. The device is gone. manage it ).
2. Mobile phone connection: connect your mobile phone to your computer through a USB cable. Select "charge only" instead of "disk drive". The mobile phone card has a special feature, when the computer recognizes it as a "disk drive", the mobile phone itself cannot operate on this SD card, which leads to the "installation media unavailable" error.
3. Mobile phone debugging settings: settings --- applicationsProgram-- Development-if you are not familiar with USB debugging, you may wish to set "Keep wake-up position" and "allow imitation location.
After setting, you can start a real machine test.
We strongly recommend that you test your program on the simulator and then put it on the real machine.