Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 309
orelzion Avatar asked Jun 25 '20 09:06

orelzion


People also ask

How do I run a layout inspector?

To open the Layout Inspector, first launch your app on a connected device or emulator. Then open Android Monitor window, select your device and app process, and then click Layout Inspector . You can also open it by clicking Tools > Android > Layout Inspector in the menu bar.

Why is my Android emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

What is layout validation in Android Studio?

Layout Validation allows you to simultaneously preview layouts on different devices and display configurations, including variable font sizes or user languages, making it easy to test for a variety of common layout problems.


1 Answers

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.

like image 73
shubhamgarg1 Avatar answered Sep 17 '22 13:09

shubhamgarg1