Rebuild of UiAutomatorViewer app from the sources to make it compatible with modern JDK versions
Just run gradlew shadowJar
in project directory - it will give you build/libs/uiautomatorviewer-all.jar
- Copy uiautomatorviewer-all.jar into
%ANDROID_HOME%/tools/lib
- Replace
%ANDROID_HOME%/tools/bin/uiautomatorviewer
with uiautomatorviewer frometc/uiautomatorviewer
This was tested only on macOS / Linux