First, I would like to thank Paul luo0739 and another online friend.Hello_missid: zhq56030207,In my article, I will reference the solution in their technical article.
About emulator-5554 disconnected! Cancelling 'xxx activity launch '! Solution:
D:
Cd d:/program files/android-sdk-windows-1.6_r1/tools
Emulator-AVD avd1.6
Where D:/program files/android-sdk-windows-1.6_r1/tools is the android SDK directory
Emulator-AVD avd1.6 start the simulator. 'avd1. 6' is the name of your own AVD.
Or write a BAT file and execute it directly:
@ Echo off
D:
Cd d:/program files/android-sdk-windows-1.6_r1/tools
Emulator-AVD avd1.6
After the command or BAT file is executed, the simulator interface will appear, and then we can run the android Java program we have compiled in eclipse. In this way, the simulator is not disconnected and the program runs normally!
[13:20:48-mp3player01] ----------------------------------
[13:20:48-mp3player01] Android launch!
[13:20:48-mp3player01] ADB is running normally.
[13:20:48-mp3player01] Deming mars.mp3 player. mp3listactivity activity launch
[3.3 13:20:48-mp3player01] Automatic Target mode: launching new emulator with compatible AVD 'av2. 100'
[3.3 13:20:48-mp3player01] launching a new emulator with virtual device 'av2. 100'
[13:21:10-mp3player01] New emulator found: emulator-5554
[13:21:10-mp3player01] waiting for home ('android. process. acore') to be launched...
[13:22:26-mp3player01] emulator-5554 disconnected! Cancelling 'xxx. XXX. xxxactivity activity launch '!
This error occurs after AVD is manually disabled. If AVD is disabled after it is started, the connection fails !), Cancel ....
As far as I know, I think this is not a serious problem.
Solution: Start an empty simulator without an application (you can also do the same as above: the Simulator Interface appears after the command or BAT file is executed) then run the android Java program we compiled in eclipse, so that the program runs normally without the simulator being disconnected!