error httpclient-android on run

I want upload image to server by urlConnection

First create MultipartEntityBuilder and setMode

After create fileBody

On HttpEntity entity = builder.build(); i get error

On run i get this error :

Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/http/Consts;
Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/http/ContentTooLongException;
Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/http/HttpConnectionFactory;
Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/http/HttpHeaders;
Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/http/MessageConstraintException;
Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/http/TruncatedChunkException;
Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/http/annotation/GuardedBy;
Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/http/annotation/Immutable;
Error:Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/apache/http/annotation/NotThreadSafe;
Error:Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Translation has been interrupted
:app:transformClassesWithDexForDebug FAILED
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> 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 'C:\Program Files\Java\jdk1.8.0_73\bin\java.exe'' finished with non-zero exit value 2

In gradle i add packagingOptions and dexOptions but not working

How i can use HttpEntity for upload image to server ?

Gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "23.0.2"
    useLibrary 'org.apache.http.legacy'
    dexOptions {
        javaMaxHeapSize "4g"
        preDexLibraries = false
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/LGPL2.1'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/notice.txt'
    }
    defaultConfig {
        applicationId "app.x.x.x"
        minSdkVersion 16
        targetSdkVersion 24
        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:24.2.1'
    compile 'com.github.dmytrodanylyk.shadow-layout:library:1.0.3'
    compile 'com.github.florent37:arclayout:1.0.2'
    compile 'com.github.rahatarmanahmed:circularprogressview:2.5.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.android.support:design:24.2.1'
    compile 'com.android.support:support-v4:24.2.1'
    compile 'com.google.firebase:firebase-core:11.6.2'
    compile 'com.google.firebase:firebase-messaging:11.6.2'
    compile 'com.google.android.gms:play-services-auth:11.6.2'
    compile 'com.google.android.gms:play-services-gcm:11.6.2'
    compile('org.apache.httpcomponents:httpmime:4.3.6') {
        exclude module: 'httpclient'
    }
    compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
    compile 'org.apache.httpcomponents:httpcore:4.4.1'
    compile 'commons-io:commons-io:1.3.2'
}

apply plugin: 'com.google.gms.google-services'

If i remove org.apache.httpcomponents:httpclient-android:4.3.5 , run correct but HttpEntity entity = builder.build(); not work for upload image