Open TeamBrainStorm opened 9 years ago
What version of Android Studio are you running? Make sure you have the latest, stable version. Your build.gradle should look something like this:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "22.0.0"
defaultConfig {
applicationId "PACKAGE-NAME-HERE"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.github.gabrielemariotti.cards:cardslib-core:2.1.0'
compile 'com.github.gabrielemariotti.cards:cardslib-cards:2.1.0'
}
The code sample you posted did not work I got the same error I'm running android studio version 1.3 RC3 any other suggestions? Please let me know
http://stackoverflow.com/a/28711776/1116560 could be a possibility. Not sure, sorry!
Hello, I'm trying to add the cards library for my android app by adding this line to my projects build.grade file:
compile 'com.github.gabrielemariotti.cards:library:1.9.1' However when I re-sync the grade file i get this error:
Failed to resolve: com.github.gabrielemariotti.cards:library:1.9.1
heres my build.grade file:
I'm new to android studio so any help I can get on this error would be amazing!
Thanks a million in advance!