Can't launch appium inspector for android

hi everyone,
working with 1.5.3
on mac sierra

getting the next error

Error: getaddrinfo ENOTFOUND localhost localhost:5554
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)

please advice.

with android use native “UI Automator Viewer” somewhere here - “Android/sdk/tools/uiautomatorviewer”

thanks for the quick answer but how do i configure the to do so? i am new to appium.

if you want to inspect any page on android:

  • install andorid studio
  • run your client on device/simulator
  • start inspector -> push second icon in menu and select device (if you have more then 1 devices connected to computer)

@Aleksei still get this error

add localhost in your host (private/etc/hosts) file and run the code

that maybe will solve it in my code but i want to use how will it help me?

i do not understand you are talking about Android but asking about “” which is iOS. is it?

or you are talking about Appium GUI version for Mac which is OLD 1.5.3? then you should forget about it to start on sierra…

i am talking about appium gui, why should i forget about it?

cause it is OLD and last commit is in JUNE. until next version will be released i guess no easy way to start it.

so do you have an article or tutorial for working with appium without using the gui? because i found examples only with gui? thanks for all the answers

well. move to npm version. it is same as GUI but without visual UI. i do not use GUI for year or more.

to start appium just execute: “appium” in command line.
to inspect Android client use native - “UI Automator Viewer”
to inspect iOS - i use “driver.getPageSource()” command in appium code

where do you get all information as you got in the inspector in appium gui?