Error: Could Not Find Or Load Main Class Com.android.uiautomator.UiAutomatorViewer
I am trying to run Android's UiAutomatorViewer on ubuntu system but when i run this command uiautomatorviewer it gives this error: Error: Could not find or load main class com.and
Solution 1:
Could not find the reason that why i am getting this error but found solution. To start UiAutomatorViewer:
- Open terminal
- In terminal go to tools folder inside android sdk
- run
./uiautomatorviwer
command.
Ui Automator Viwer is running now. May be helpful for someone.
Solution 2:
In my case, the uiautomatorviewer
is located inside <android-sdk>/tools/bin
- Open terminal, go to
<android-sdk>/tools/bin
- run
./uiautomatorviewer
Hope this will be helpful.
Solution 3:
Pretty similar way in recent version of Windows, while e.g. %ANDROID_HOME% is declared in PATH as %userprofile%\AppData\Local\Android\Sdk then simply run:
cd %ANDROID_HOME%/tools/bin
uiautomatorviewer.bat
Post a Comment for "Error: Could Not Find Or Load Main Class Com.android.uiautomator.UiAutomatorViewer"