android - Error while building on build server -


i have build.gradle file. code build fine in android studio when try build on teamcity, exception:

process exited code 1 [20:20:27][step 1/1] gradle failure report [20:20:27][gradle failure report] failure: build failed exception. [20:20:27][gradle failure report] [20:20:27][gradle failure report] * went wrong: [20:20:27][gradle failure report] execution failed task ':app:transformclasseswithdexfordebug'. [20:20:27][gradle failure report] > com.android.build.api.transform.transformexception: com.android.ide.common.process.processexception: java.util.concurrent.executionexception: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished non-zero exit value 1 [20:20:27][gradle failure report]

here build.gradle file :

apply plugin: 'com.android.application'  android {     compilesdkversion 23     //buildtoolsversion "23.0.3"      buildtoolsversion "23.0.3"      testoptions {         unittests.returndefaultvalues = true     }      lintoptions {         abortonerror false     }      defaultconfig {         applicationid "com.aaaaaaaa.aaaa.aaaa"         minsdkversion 16         targetsdkversion 23         versioncode 1         versionname "1.0"         multidexenabled true //        jackoptions { //            enabled true //        }     }     buildtypes {         release {             shrinkresources true             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }      dexoptions {         incremental = true;         predexlibraries = false         javamaxheapsize "4g"     }  //    compileoptions { //        targetcompatibility 1.8 //        sourcecompatibility 1.8 //    }       packagingoptions {         exclude 'meta-inf/dependencies'         exclude 'meta-inf/notice'         exclude 'meta-inf/license'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/notice.txt'     } }  dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     testcompile 'junit:junit:4.12'     testcompile 'org.mockito:mockito-core:1.9.5'     compile 'com.android.support:multidex:1.0.1'     compile 'com.android.support:appcompat-v7:23.4.0'     compile 'com.android.support:design:23.4.0'     compile 'com.android.support:cardview-v7:23.4.0'     compile 'com.android.support:support-v4:23.4.0'     compile 'com.google.code.gson:gson:2.6.2'     compile 'me.tatarka:gradle-retrolambda:3.3.0-beta4'     compile 'org.adw.library:discrete-seekbar:1.0.1'     compile 'com.github.jjobes:slidedatetimepicker:v1.0.4'     compile 'com.google.guava:guava:19.0'     compile 'net.danlew:android.joda:2.9.4.1'     compile 'com.github.alirezaaa:filepickerlibrary:3.5.1'     compile 'net.gotev:uploadservice:3.0'     compile 'com.squareup.okhttp3:okhttp:3.4.1'     compile 'com.squareup.retrofit:retrofit:1.9.0'     compile 'io.reactivex:rxandroid:0.25.0'     compile 'com.github.bumptech.glide:glide:3.7.0'     compile 'com.hkm.ui:ultimaterecyclerview:0.5.8'     compile 'com.mlsdev.rximagepicker:library:1.2.1'     compile 'com.google.android.gms:play-services:9.4.0' } 

is there else need add in gradle file build on teamcity?


Comments