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
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.
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:
-
when error:
-
and after stop and run Debug again:
Try with
adb shell settings delete global debug_view_attributes
and
adb shell settings delete global debug_view_attributes_application_package