问题
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