0

Can any one tell me that how to set android L environment in eclipse.I updated my sdk tools to 24.1.2. And i downloaded sample code from here and then i got errors called The import android.support.v7.widget.RecyclerView cannot be resolved can any one tell me how to setup android L environment in eclipse

RD Division Medequip
  • 1,605
  • 4
  • 18
  • 32

1 Answers1

0
  1. Right click in your project -> Properties
  2. In the tab libraries, click in "Add External Jars"
  3. Select "android support v7" and "RecyclerView" jars.

Paths:
path-to-android-sdk/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar,

android-sdk/extras/android/support/v7/recyclerview/libs/android-support-v7-recyclerview.jar

  1. Go to tab "Order and Export", check the two jars, click in ok
  2. Add this import to your activity: import android.support.v7.widget.RecyclerView;
  3. Try to build your project again!