Android Studio 4.0 Layout Inspector isn't working

I can't see any updates in Layout Inspector in the new Android studio (4.0).

My app is targeting API 29, and build tools version is buildToolsVersion '29.0.3'.

I'm running emulator Pixel_2_api_29 and my device MI A3 OS version 10.

And this is all I can see layout inspector android studio 4.0


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.


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


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