I have installed SDK Manager and set my environment variable.When I type in android in command line. It say android command has been deprecated. How do I launch uiautomatorviewer in Mac ?
With the deprecated from uiautomatorviewer, now you must use monitor.
See the documentation for more information https://developer.android.com/studio/profile/monitor.html