For eclipse We need to include both the things add android.support.v7.widget.CardView
as a library project and also add + check it's jar file in java build path
- Go to File -> Import -> Existing Android code into workspace -->
Browse (Go to sdk/extras/android/support/v7/cardview) --> Click ok
--> Click Finish
- Right click on cardview project --> Properties --> Android(Left Pane)
--> Enable isLibrary (tick the checkbox) --> Apply --> ok
- Right click on your project --> Properties --> Android(Left pane) -->
Add (under library) --> cardview --> apply --> ok
- Right click on your project again --> build path --> configure build
path -->under libraries-->add jar-->expand cardview-->expand
libs-->select android.support.v7.widget.CardView.jar
under order and export-->check android.support.v7.widget.CardView.jar-->click
Hope it will help someone.