Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Layout inspector not showing compose nodes

Trying to inspect my pure Compose app in the layout inspector shows the screen without any layout node information. No errors in the logs. This happens on both real devices and emulators. I have tried Android Studio Bumblebee (latest patch) and Chipmunk (Beta). Compose version is 1.1.1

Layout inspector

like image 893
bompf Avatar asked Mar 13 '26 07:03

bompf


1 Answers

When only the views are shown, but no Composables, make sure to not exclude .version files from META-INF, since the compose UI tooling utilizes them, e.g. remove/adjust these:

packagingOptions {
    resources {
        excludes += "META-INF/*.version"
    }
}

or

packagingOptions {
    resources {
        excludes += "META-INF/**"
    }
}
like image 61
dipdipdip Avatar answered Mar 14 '26 19:03

dipdipdip



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!