Skip to content
Advertisement

Unable to start uiautomatorviewer on Ubuntu

I am trying to start uiautomatorviewer from default sdk installed location using terminal (Ubuntu 16) :

JavaScript

and I am getting an error as below :

Error

JavaScript

Till yesterday things are working fine for me . So , far I tried looking into the post unable to start uiautomatorviewer

but what I am getting is a different error , Forgive me but I am a newbie to this and absolutely no idea of what went wrong in one day , Any help to resolve the error would be highly appreciated .

Advertisement

Answer

Finally I was able to find out a solution , so just posting the same for other’s reference :

Downgrading the Java version from 9 to 8 resolved the issue :

Command Used :

JavaScript

This is list out the version installed like this with * on the selected version :

JavaScript

Enter here the number 1 as we need version 8 .

Thats’s all done , rerun uiautomatorviewer .

EDIT:

If You see something like “you don’t have any alternatives” try donwloading openjdk-8 from the link below (for linux)

Install open jdk-8

Advertisement