Could not initialize class android.support.design.widget.CoordinatorLayout

后端 未结 8 1998
臣服心动
臣服心动 2020-12-11 00:17

I am trying to use the CoordinatorLayout from the new Android design library. I added the package to gradle; then I try to use the layout I get this error:

j         


        
8条回答
  •  一向
    一向 (楼主)
    2020-12-11 01:01

    1. First update android studio to latest version (beta) 1.3 beta version. [Using menu option 'Check for updates' from android studio]

    2. Render your preview using Android M preview.

    enter image description here

    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

提交回复
热议问题