Caused by: java.lang.NoClassDefFoundError: org.apache.http.util.Args
<pre><code>  conn.addRequestProperty(entity.getContentType().getName(), entity.getContentType().getValue());
</code></pre>

<p>It crashes on samsung device running operating system version 4.1. While on Marshmallow Nexus 6 device, it works perfectly fine. What is the problem?</p>

<p>Gradle file</p>

<pre><code>compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
</code></pre>

<p>I have in my libs folder httpclient-4.3.3.jar
httpclient-cache-4.3.3.jar
httpcore-4.3.2.jar
httpmime-4.3.3.jar</p>