Importing CardView and RecyclerView (Android 5.0) in my existing project (eclipse)

Harsh Pokharna picture Harsh Pokharna · Oct 21, 2014 · Viewed 18.3k times · Source

I want to import CardView and RecyclerView in my existing project. I am using ECLIPSE. I read other answers in stackoverflow but all of them are for Android Studio. ve Can anyone please help me ?

The error I am receiving is : CardView cannot be resolved to a type.

Update: Commonwares answer helped me solve this. But now I have another error. (Error inflating class and android.support.v7.widget.CardView). Please someone help me.

Answer

CommonsWare picture CommonsWare · Oct 21, 2014

They are also available as Android library projects now, in extras/android/support/v7/ of your SDK installation. Make a copy of those projects elsewhere on your hard drive, import them into Eclipse, then reference them as libraries from your app following the instructions in the documentation.