Inspect element of app running on real device

I am running Android native app on real device(Google Pixel). I want to inspect elements on this particular app. I tired using appium inspector but it fails to do so.

  1. Can we use Android studio to inspect elements on the real device when we are not using the build from Android studio?
  2. Is there any other tool we can use to inspect the elements?

I really appreciate the help.

uiautomatorviewer from android-sdk