Pawel B Pawel B - 3 months ago 46
Android Question

extends RecyclerView.Adapter not available

trying extend my class with "extends RecycleView.Adapter" but it seams like it is not "available" , I Rebuilded and cleaned up the project but it's no help.
build.cradle : (in case that have anything to do with it)

minSdkVersion 15
targetSdkVersion 23
compileSdkVersion 23
buildToolsVersion "23.0.1"

(thank U for any help)


You have to import its library as follows :

compile ''

Example :

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile ''

Make sure that you are importing import;

Your class should look like this :

public class MyRecyclerViewAdapter extends RecyclerView.Adapter<MyRecyclerViewAdapter.CustomViewHolder> {