I run my ProGuard for my Android project and receive the following warnings:
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.
I found here to fix this, ignoring it with:
-keep class org.apache.http.** { *; } -dontwarn org.apache.http.** -keep class android.net.http.** { *; } -dontwarn android.net.http.**
I see no way to remove duplicates from the libraries used. Even after using dontwarn warnings do not disappear.
Is this handling of this warning correct, simply ignoring it, or can this lead to problems?
java android android-studio proguard android-proguard
confile 09 Oct '15 at 22:03 2015-10-09 22:03
source share