committedandroider
committedandroider

Reputation: 9281

Why am I still getting installing repository for RecyclerView error?

I am following a guide on using the Recycler View, I having trouble with the part of declaring the dependency and installing the RecyclerView into Android Studio.

I added the RecyclerView to my xml file and declared the dependency in build.gradle(below)

apply plugin: 'com.android.application'
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"
    defaultConfig {
        applicationId "com.ryde.chris.ryde"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.android.support:design:22.2.1'
    compile 'com.android.supportrecyclerview-v7:23.0.0'
}

I rebuilt the app and tried installing the Recycler View repo. When installing, I ran into the same exact issue that this user did.

I took a look at the answer on that thread. I chose to use RecyclerView v 23.0.0 and made sure that I compiled with api version 23 (compileSdkVersion 23 in build.gradle). Using the AVD manager, I also made sure that my support library for api version 23 was installed and updatedenter image description here

Does anyone know why I am still getting this issue? Internet is working fine (this to be specific)enter image description here

Upvotes: 0

Views: 315

Answers (2)

mehrdad khosravi
mehrdad khosravi

Reputation: 2258

Use the new version:

compile 'com.android.support:recyclerview-v7:23.1.1'

Upvotes: 1

tiny sunlight
tiny sunlight

Reputation: 6251

Change

compile 'com.android.supportrecyclerview-v7:23.0.0'

to

compile 'com.android.support:recyclerview-v7:23.0.0' 

Upvotes: 3

Related Questions