android - Error:(31, 5) uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library -
i m trying use gabriele mariotti card library , github using https://github.com/gabrielemariotti/cardslib.
currently i'm using android studio, have added dependencies build gradle file mentioned in documentation.
this gradle file looks like
apply plugin: 'com.android.application' android { compilesdkversion 21 buildtoolsversion "21.0.1" defaultconfig { applicationid "com.vt" minsdkversion 9 targetsdkversion 21 } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile project(':facebooksdk') compile project(':addslidepanel30') compile 'com.android.support:support-v4:21.0.1' compile 'com.google.android.gms:play-services:+' compile 'com.android.support:appcompat-v7:21.0.3' compile files('libs/android-support-v7-palette.jar') compile files('libs/universal-image-loader-1.9.3-with-sources.jar') compile files('libs/volley.jar') //core compile 'com.github.gabrielemariotti.cards:cardslib-core:2.0.1' //optional built-in cards compile 'com.github.gabrielemariotti.cards:cardslib-cards:2.0.1' //optional recyclerview compile 'com.github.gabrielemariotti.cards:cardslib-recyclerview:2.0.1' //optional staggered grid view compile 'com.github.gabrielemariotti.cards:cardslib-extra-staggeredgrid:2.0.1' //optional drag , drop compile 'com.github.gabrielemariotti.cards:cardslib-extra-dragdrop:2.0.1' //optional twoway (coming soon) //compile 'com.github.gabrielemariotti.cards:cardslib-extra-twoway:2.0.1' }
but keep getting message error
error:(31, 5) uses-sdk:minsdkversion 9 cannot smaller version 14 declared in library c:\users\sam-pc\androidstudioprojects\vt1.3.0.0 newdb\vt1300newdb\build\intermediates\exploded-aar\com.github.gabrielemariotti.cards\library\1.9.1\androidmanifest.xml error:(31, 5) execution failed task ':vt1300newdb:processdebugmanifest'. > manifest merger failed : uses-sdk:minsdkversion 9 cannot smaller version 14 declared in library c:\users\sam-pc\androidstudioprojects\vt1.3.0.0 newdb\vt1300newdb\build\intermediates\exploded-aar\com.github.gabrielemariotti.cards\library\1.9.1\androidmanifest.xml suggestion: use tools:overridelibrary="it.gmariotti.cardslib.library" force usage
i have tried change version of card lib stable, i'm keep getting same error
dependencies { //core card library compile 'com.github.gabrielemariotti.cards:library:1.9.1' //extra card library, required if want use integrations other libraries compile 'com.github.gabrielemariotti.cards:library-extra:1.9.1' }
ps : i'm new android studio , project works fine in eclipse , m trying migrate android studio since s recommended google .so appreciate help.
add following manifest:
<uses-sdk android:targetsdkversion="22" android:minsdkversion="14" tools:overridelibrary="it.gmariotti.cardslib.library"/>
more info can found here.
Comments
Post a Comment