Android Automated Test 01-Environment installation connectivity issues and solutions

Source: Internet
Author: User

1.ADB Devices---adb is neither an internal command nor an external program command.

Solution: Under the premise of successful installation, pay attention to the configuration of environment variables, which is usually caused by inconsistent environment variables and actual paths.

2. Use uiautomatorviewer when connecting device, error:

Error obtaining UI Hierarchy

Com.android.ddmlib.AdbCommandRejectedException

Devices unauthorized

FIX: The device debug mode is turned off and reopened, the prompt all debugging select OK, then re-adb devices, and then re-open Uiautomatorviewer can.

You can use Uiautomatorviewer to locate the element path ID of the device for Autotest-code use.

3. When creating a class using eclipse: Could not calculate build Plan:plugin

Workaround: Delete the C:\Users\Administrator\.m2\repository\org\apache\maven\plugins files below, then tick Wouindows--preferences--maven--update Maven Projects

Re-download the dependent package.

Android Automated Test 01-Environment installation connectivity issues and solutions

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.