Android Studio 4.0 Layout Inspector isn’t working

Try with
adb shell settings delete global debug_view_attributes
and
adb shell settings delete global debug_view_attributes_application_package
enter image description here

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:

  1. when error:
    enter image description here

  2. and after stop and run Debug again:
    enter image description here

In the tools->SDK Manager window, please verify that Layout Inspector Image Server for API 29-30 is installed.

enter image description here

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.

Leave a Comment