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

后端 未结 8 2016
臣服心动
臣服心动 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 00:58

    may be dependency error. dependencies must be like

    dependencies {
    
        compile 'com.android.support:recyclerview-v7:22.2.0'
        compile 'com.android.support:appcompat-v7:22.2.0'
        compile 'com.android.support:design:22.2.0'
    }
    

提交回复
热议问题