Frequently asked questions during the-genymotion configuration of Android wireless testing

Source: Internet
Author: User

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

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.