First, Prerequisites:
The Android Uiautomator test environment has been deployed.
Two types of problems were encountered in the deployment of genymotion:
1. Open an analog device via eclipse, then push the compiled jar package to the phone/data/local/tmp/directory times wrong:
G:\ADT-BUNDLE-WINDOWS-X86-20140702\ANDROID-WORKSPACE\DEMO1>ADB Push G:\adt-bundle-windows-x86-20140702\ android-workspace\demo1\bin\demo.jar/data/local/tmp/
ADB server is an out of date. Killing ...
ADB server didn ' t ACK
* Failed to start daemon *
Error
Workaround: The issue is due to not setting the ADB path in genymotion, open the Genymotion tool, click the Setting button, click ADB, select Use custom Android SDK tools, and then configure Android on your PC The installation path of the SDK.
2, after the problem is resolved, continue to push the compiled jar package to the mobile phone/data/local/tmp/directory still error:
G:\ADT-BUNDLE-WINDOWS-X86-20140702\ANDROID-WORKSPACE\DEMO1>ADB Push G:\adt-bundle-windows-x86-20140702\ android-workspace\demo1\bin\demo.jar/data/local/tmp/
Error:more than one device and emulator
Error:more than one device and emulator
1) first through the ADB devices command to see if you really open multiple devices, and found that there are indeed multiple
G:\ADT-BUNDLE-WINDOWS-X86-20140702\ANDROID-WORKSPACE\DEMO1>ADB devices
List of devices attached
emulator-5554 offline
4DFADCB86B00CF05 Device
2) After shutting down the 4DFADCB86B00CF05 device, enter the ADB devices command again and find that emulator-5554 offline still exists
Problem reason: A program occupies 5555 port, which causes ADB to think that 5554 cannot be enabled as a 1th device
Method:
1. Use Netstat–ano (i.e. netstat-a–n–o) to see which PID the 5555 port is occupied by.
2. Ntsd-c q-p PID kills the process and releases the port number.
3. Run ADB devices again and find emualtor-555 offline no
Frequently asked questions during the-genymotion configuration of Android wireless testing