Cannot resolve symbol CoordinatorLayout

半城伤御伤魂 提交于 2019-12-23 02:42:28

问题


I can use coordinator layout in my xml files but when I tried to import it in my java class it said "Cannot resolve symbol CoordinatorLayout while other classes in the same packages work fine.

Screenshot is shown below:

Dependencies:


回答1:


Try this

 compile 'com.android.support:design:25.1.1'


来源:https://stackoverflow.com/questions/33206181/cannot-resolve-symbol-coordinatorlayout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!