I have an Android library project and want to include a class that extends RecyclerView.Adapter
. My build.gradle
file includes the following:
apply plugin: 'com.android.library'
dependencies {
compile 'com.android.support:recyclerview-v7:21.0.+'
}
Despite this, I cannot import RecyclerView in any java file; it even does not show up in the code completions popup in Android Studio (Control+Space). What's wrong?
Rebuilt the project and clean it