Thursday, 15 September 2011

android - Error:(31, 5) uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library -


I am trying to use the Gabriel Marriott Card Library, which can be used by Gitub

Android Studio, so I've added dependencies to the My Build Grad file mentioned in the document.

It looks like my Gredl file

  Apply plugin: 'com .android.application' android {compileSdkVersion 21 buildToolsVersion "21.0.1" Default Config {applicationId "com.vt" minSdkVersion 9 goals SdkVersion 21} buildTypes {release {minifyEnabled false proguardFiles getDefaultProguardFile ( 'proguard-android.txt'), 'proguard- rules .txt'}}} {dependency compile the project ( ': facebookSDK') project Collection (': addslidepanel30') Collections' 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 / universal-image-loader-1.9.3-with-sources.jar ') Compile files ('libs / volley.jar') / / compile the original compilation files ('droid-support-v7-palette.jar' com.github.gabrielemariotti.cards:cardslib-core:2.0.1 '/ to / built-in card collection to alternate compilation 'com.github.gabrielemariotti.cards:cardslib-cards:2.0.1' // RecyclerView alternative 'com .github.gabrielemariotti.cards: cardslib-recyclerview: 2.0.1' / / staggered alternate drop compile the alternative 'and com.github.gabrielemariotti.cards:cardslib-extra-staggeredgrid:2.0.1' // drag grid view compilation 'com.github.gabrielemariotti.cards:cardslib-extra-dragdrop : 2.0.1 '// Option for TwoWay (Coming Soon ) // compilation 'com.github.gabrielemariotti.cards:cardslib-extra-twoway:2.0.1'}  

but I get this message error < / P>

  Error: (31, 5) Usage-SDK: minSdkVersion 9 can not be deleted from version 14 declared in library C: \ Users \ SAM-PC \ AndroidStudi Explosion -R \ com.github .gabrielemariotti.cards \ library oProjects \ vt1.3.0.0 newDB \ vt1300newDB \ \ intermediate \ Construction \ 1.9.1 \ AndroidManifest.xml error: ( "31, 5) the performance failed: vt1300newDB: processDebugManifest '. & Gt; Appeared failed merger: uses is sdk: minSdkVersion 9 Version 14 library can not be smaller than declared in C: \ Users \ SAM-PC \ AndroidStudioProjects \ vt1.3.0.0 newDB \ vt1300newDB \ \ intermediate building explosion -R \ com.github \ .gabrielemariotti.cards \ library \ 1.9.1 \ AndroidManifest.xml Suggestion: Use the tool: Override Library = "it.gmariotti.cardslib.library" to apply the usage  

I have tried to change it to stabilize the version of the card, but I am the only one Receiving error

  Dependency {// Core Card Library Compilation 'com.github.gabrielemariotti.cards:library:1.9.1' // Additional Card Library, This is required only if You want to use integration with other libraries 'com.github.gabrielemariotti.cards:library-extra:1.9.1'}  

PS: I am new to Android studios, My project works fine in Eclipse, but I try to migrate from Google Stories to Android studios I am doing So I appreciate your help.

Add the following to your manifest:

  & lt; Use-SDK Android: targetSdkVersion = "22" Android: minSdkVersion = "14" Tool: Override Library = "it.gmariotti.cardslib.library" / & gt;  

More information can be found.


No comments:

Post a Comment