title: ProGuard: duplicate definition of library class?
body: <p>I run my ProGuard for my Android project and get the following warnings: </p>
  
  <pre><code>Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver]
  Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory]
  Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException]
  Note: duplicate definition of library class [org.apache.http.params.HttpParams]
  Note: duplicate definition of library class [android.net.http.SslCertificate$DName]
  Note: duplicate definition of library class [android.net.http.SslError]
  Note: duplicate definition of library class [android.net.http.SslCertificate]
  
  Note: there were 7 duplicate class definitions.
  </code></pre>
  
  <p>I found <a href="https://stackoverflow.com/questions/32535346/android-proguard-error-in-android-studio">here</a> to fix this with ignoring it with: </p>
  
  <pre><code>-keep class org.apache.http.** { *; }
  -dontwarn org.apache.http.**
  -keep class android.net.http.** { *; }
  -dontwarn android.net.http.**
  </code></pre>
  
  <p>I do not see a way to remove the duplicates from the used libraries. Even after using <code>dontwarn</code> the warnings do not vanish.</p>
  
  <p><strong>Is this the right way of handling this warning in just ignoring it or could this lead to problems?</strong> </p>