android - Cannot Install Cardview Repository -




previously asked question

i cannot install cardview support repository. gradle recognizes need installed , gives following error. cannot click install repository , sync. rather, can click nothing happens when do.

picture of error app gradle file

    apply plugin: 'com.android.application'  android {     compilesdkversion 25     buildtoolsversion "25.0.0"     defaultconfig {         applicationid "pro.bladebeat.projectpsittacosaurus"         minsdkversion 19         targetsdkversion 25         versioncode 1         versionname "1.0"         testinstrumentationrunner "android.support.test.runner.androidjunitrunner"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', {         exclude group: 'com.android.support', module: 'support-annotations'     })     compile 'com.android.support:appcompat-v7:25.3.1'     compile 'com.android.support:cardview-v7.25.0.0'     compile 'com.android.support:recyclerview-v7:25.3.1'     compile 'com.android.support.constraint:constraint-layout:1.0.1'     compile 'com.android.support:design:25.3.1' 

testcompile 'junit:junit:4.12' }

and project gradle file

// top-level build file can add configuration options common sub-projects/modules.  buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:2.3.3'          // note: not place application dependencies here; belong         // in individual module build.gradle files     } }  allprojects {     repositories {         jcenter()         maven {             url "https://maven.google.com"         }     } }  task clean(type: delete) {     delete rootproject.builddir } 

use compile 'com.android.support:cardview-v7:25.3.1' instead of compile 'com.android.support:cardview-v7.25.0.0'

this fix typo, match version of support libraries using (as pointed out cricket_007).





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -