apply plugin: 'com.android.application' android { useLibrary 'org.apache.http.legacy' compileSdkVersion 21 buildToolsVersion "20.0.0" defaultConfig { applicationId "com.lc8n.blauploader" minSdkVersion 8 targetSdkVersion 14 compileOptions { sourceCompatibility JavaVersion.VERSION_1_5 targetCompatibility JavaVersion.VERSION_1_5 } } packagingOptions { exclude 'META-INF/NOTICE.txt' // will not include NOTICE file exclude 'META-INF/LICENSE.txt' // will not include LICENSE file } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile 'org.apache.httpcomponents:httpmime:4.2.3' }