Here is the contents of my build.gradle file:
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { maven { credentials { username artifactoryUserName password artifactoryPassword } url 'http://test:8081/artifactory/libs-release-local' } mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' } allprojects { repositories { maven { credentials { username artifactoryUserName password artifactoryPassword } url 'http://test:8081/artifactory/libs-release-local' } mavenCentral() maven { url 'http://repo1.maven.org/maven2' } jcenter() } }
Here is the contents of app\build.gradle :
apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" lintOptions { abortOnError false } defaultConfig { applicationId "test.com" minSdkVersion 14 targetSdkVersion 21 versionCode 1 versionName "1.0" } signingConfigs { aseeConfig { storeFile file("test.keystore") storePassword "test123" keyAlias "AndroidKey" keyPassword "test123" } } buildTypes { release { signingConfig signingConfigs.aseeConfig minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } prod.initWith(buildTypes.release) prod { signingConfig signingConfigs.aseeConfig minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } } dependencies { //compile 'com.google.android:support-v4:r13' compile 'com.google.android:google-play-services:4.1.32' compile 'com.devsmart.android:devsmart-lib:1.0.0' compile 'com.jeremyfeinstein.slidingmenu.lib:sliding-menu:1.0.0' compile 'com.viewpagerindicator:viewpager-indicator:2.4.1' ///compile 'com.google.android.gms:google-play-services_lib:4.1.32' compile 'com.emilsjolander:sticky-list-headers:1.0.0' //compile 'com.actionbarsherlock:actionbar-sherlock:4.2.0' compile 'com.mobeta.android.dslv:drag-sort-list-view:0.6.1' compile 'com.threegvision.products:inigma_sdk_pro:3.24' compile 'org.afree:a-free-chart:1.0.0' compile 'org.afree:a-free-graphics:1.0.0' compile 'net.simonvt:datepicker:1.0' //compile 'eu.inmite:android-styled-dialogs:1.1' compile 'com.nineoldandroids:nine-old-androids:2.4.1' compile 'com.shinobicontrols.charts:shinobicharts:1.5.0-5' compile 'com.squareup.picasso:picasso:2.3.2' compile 'com.daimajia.slider:library: 1.1.5@aar ' compile 'com.github.bumptech.glide:glide:3.6.0' compile 'com.journeyapps:zxing-android-embedded: 3.0.1@aar ' compile 'com.google.zxing:core:3.2.0' compile 'com.squareup.retrofit:retrofit:1.9.0' compile fileTree(dir: 'libs', include: ['*.jar']) compile files('libs/actionbarsherlock-4.2.0.jar') compile files('libs/android-styled-dialogs-1.1.1-sources.jar') compile files('libs/android-support-4.0.jar') }
I can not create my project. I get this error:
source share