https://kotlinlang.org logo
m

Mikołaj Kąkol

02/12/2021, 11:19 AM
has anyone been able to use new layout inspector: https://developer.android.com/studio/preview/features?utm_source=android-studio-4-2&utm_medium=studio-assistant-preview#compose-layout-inspector it doesn’t work for my project or in jetnews sample app. It’s just blank
d

Denis

02/12/2021, 11:49 AM
It does work well for my pretty simple app. Live updates work, component tree works. Layer spacing is disabled right now for some reason, but it did work an hour ago. upd a minute later: and it layer spacing works again too, don't know what was wrong upd: you need to tilt the layout a bit, then the Layer spacing slider enables
Seems Live updates don't work if you disable and enable it. It stays on the same screen. And Refresh button doesn't refresh anything after that
t

Timo Drick

02/12/2021, 12:52 PM
@Mikołaj Kąkol did you updated AS to canary 6?
m

Mikołaj Kąkol

02/12/2021, 12:52 PM
yes
when I forgot to add “reflection” lib, I also got warning to add it
t

Timo Drick

02/12/2021, 12:53 PM
I do not use reflection in my project and it still works.
When live update is activated it is very slow.
m

Mikołaj Kąkol

02/12/2021, 12:53 PM
it’s in docs that it is needed
t

Timo Drick

02/12/2021, 12:54 PM
which compose version do you use?
m

Mikołaj Kąkol

02/12/2021, 12:54 PM
in my project 11, and in jetnews 12
t

Timo Drick

02/12/2021, 12:55 PM
And the android device which sdk version is running there?
m

Mikołaj Kąkol

02/12/2021, 12:55 PM
one plus 6 with android 10
t

Timo Drick

02/12/2021, 12:56 PM
hmm for me it runs on a Fairfone 3+ also android 10
a

allan.conda

02/12/2021, 1:20 PM
Ohh, so that’s how it looks when it works 😄
are you using fragments by any chance? @Mikołaj Kąkol or a mix of Compose and AndroidViews
m

Mikołaj Kąkol

02/12/2021, 1:22 PM
nothing like that
for me even Jetnews doesn’t work, which is used on screen in release notes
t

Timo Drick

02/12/2021, 1:30 PM
Jetnews app is not updated to the new alpha06 gradle plugin. But when i do this it works for me.
m

Mikołaj Kąkol

02/12/2021, 1:31 PM
are you on mac, or linux?
t

Timo Drick

02/12/2021, 1:32 PM
linux
m

Mikołaj Kąkol

02/12/2021, 1:32 PM
im on mac 😕
maybe that is the factor
t

Timo Drick

02/12/2021, 1:33 PM
I don't think so. Because most Google developers working on mac
4 Views