Android Studio: Rendering Problems with CoordinatorLayout

I solved the similar error of android...coordinatorlayout that appear instead of the preview of android app by:

1- Close the project

2- Restart the android studio

3- Build the project

May be it will help someone.


Update android studio to latest version (beta) 1.3 beta version.Menu -> 'Check for updates'

If you are not able to find the beta update change android studio settings(Updates), then update that patch and render with M preview

enter image description here

Try Renderring your preview using Android M preview.

enter image description here


This is a known issue in the Android Open Source Project Issue Tracker:

https://code.google.com/p/android/issues/detail?id=175595

The unfortunate workaround described by the Android project member is:

Workarounds: Try rendering with M preview using AS v1.3 preview OR use FrameLayout for designing and change to android.support.design.widget.CoordinatorLayout while debugging.