Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -
here content of build.gradle
file:
// top-level build file can add configuration options common 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 content 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't build project . getting error:
i faced kind of issue once don't remember how fix it.
rememeber, follow this link
it's seem because there many module dependent on difference support-v4 lib. add multidexenabled true
may works.
also try set modules' dependency same version of support-v4. can @ these link known how exclude compile v4 link1 link2 link3
if still doesn't work, try clean project, restart studio, restart computer(i don't know why worked me once)
hope helps.
Comments
Post a Comment