Android Studio 4.0 Layout Inspector isn't working
adb shell settings delete global debug_view_attributes
adb shell settings delete global debug_view_attributes_application_package
Try to stop current running-app and run with debug mode again (click button "Debug" or press Shift F9) and select your process again. Please see some screenshots below:
and after stop and run Debug again:
In the tools->SDK Manager window, please verify that Layout Inspector Image Server for API 29-30 is installed.
In case you still face the issue, take a look at the Run window and if you see a dlopen error for a library, add android:extractNativeLibs="true" in your AndroidManifest.xml file.