

: object is not an instance of declaring class The normal Design View shows a preview but nothing is clickable on it. The XML view preview doesn't show anything. I end up reverting to 3.1.1 and if things are not loading I force refresh layout as it was suggested in below comment.There is something wrong with the AppBarLayout. 3.2 Canary 11 uses up all given memory fast while editing layouts and then GC keeps lagging all IDE for me. I'm guessing it had something to do with new-old bindings compilerĮdit 3: Oh god. I would also try to change preview mode to blueprint if you are having problems.Įdit 2: I've went with Android Studio 3.2 Canary 9 and layouts are working as expected without problems. Changing theme on the preview does however help. Weird.Įdit: It seems that problem keeps reoccurring. This somehow fixed issue with rest of the layouts. I manually edited one of resource ids on a layout. It had something to do with id resources resolver. Solution: Noticed a red error icon next to layout in preview mode. The app is compiling and running well.Ĭlearing cache/restarting, cleaning, rebuilding had no effect on this I can't seem to find a correlation between XML layouts that work and those that do not, there is a mixture of use of binding, constraint layout, varied in complexity and length, error-free.

Some layouts are shown, some just have blank, gray frame.
