'Jetpack compose can not inspect in AS Layout Inspector

Jetpack compose can not inspect in AS Layout Inspector. Is there any tools can inspect compose layoutnode.



Solution 1:[1]

As of the Jetpack Compose Beta launch, the latest version of Android Studio has a version of the Layout Inspector that supports inspecting jetpack compose layouts:

https://developer.android.com/jetpack/compose/tooling#layout-inspector enter image description here

Solution 2:[2]

After Enabling Enable View Attributes in Device's Developer Options solved the issue for me in Android 12 Device

Solution 3:[3]

Android Studio's Layout Inspector does not currently support Compose. Until then you can use Square's Radiography for debugging, which will print your view hierarchy.

Check out the documentation to use it with Compose: https://github.com/square/radiography#jetpack-compose-support

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 tir38
Solution 2 VIGNESH
Solution 3 Saurabh Thorat