Error in using UIAutomatorviewer for testing Android app in Appium

前端 未结 19 1748
甜味超标
甜味超标 2020-12-06 00:54

I have to automate an Android application, I am doing the same through Appium.

The problem I am facing is after launching the Appium server, the app is getting instal

相关标签:
19条回答
  • 2020-12-06 01:24

    Easiest solution..

    Restart the device. Restart uiautomatorviewer.

    Worked like a charm for me .... :P

    0 讨论(0)
  • 2020-12-06 01:25

    The one that works is in this path:

    Android/Sdk/tools/bin/uiautomatorviewer
    

    Paste this in your terminal and it will run automator that works

    0 讨论(0)
  • 2020-12-06 01:31

    I have spent over a week to resolve this issue. When you connect your device and using ASM 3.0, when screen is projected open the UIAutomator to capture the current android screen. Without Appium it should capture. For use Android Studio instead of android sdk. Uninstall and reinstall Android Studio. It is working perfect for me now.

    0 讨论(0)
  • 2020-12-06 01:32

    After my tryst with the uiautomator viewer i came to know that we get the error only when:

    appium server is running and we try to capture the screenshot using uiautomatorviewer.

    So, whenever you want to use uiautomatorviewer make sure that server is in stopped state.

    0 讨论(0)
  • 2020-12-06 01:32

    I fixed the same issue by using following methods.

    (1) Connect your Android device to your development machines;

    (2) Go to command line in terminal or DOS command line for Windows;

    (3) Using "adb shell" into your Android devices;

    (4) Change the user to root by input "su root" in command line;

    (5) Change the access right to /data/local/tmp by input "chmod 777 /data/local/tmp";

    (6) Go back to uiautomatorviewer and do screen shot again, the error should be gone;

    I guess there are some file can't be access if it doesn't own right in /data/local/tmp.

    0 讨论(0)
  • 2020-12-06 01:35

    I had the same problem because I used "adbd insecure". So I just disabled "adbd insecure", and reload uiautomatorviewer, everything is OK.

    0 讨论(0)
提交回复
热议问题