New information: The messages I reported do not appear to be the result of my previous attempt at adding something from org.apach.http... I just imported another project from Eclipse to Android Studio, and in this project I never message around with HTTP stuff. Yet the same message appeared. Here is what Proguard reports in the Gradle console just before those "duplicate definition" messages:
Reading program jar [C:\Swdev\Android\sdk\extras\android\m2repository\com\android\support\support-annotations\23.1.1\support-annotations-23.1.1.jar] (filtered) Reading program jar [C:\Users\Bob\AndroidProj\as\Cadence\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.1.1\jars\classes.jar] (filtered) Reading program jar [C:\Users\Bob\AndroidProj\as\Cadence\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.1.1\jars\classes.jar] (filtered) Reading program jar [C:\Users\Bob\AndroidProj\as\Cadence\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.1.1\jars\libs\internal_impl-23.1.1.jar] (filtered) Reading program directory [C:\Users\Bob\AndroidProj\as\Cadence\app\build\intermediates\classes\release] (filtered) Reading library jar [C:\Swdev\Android\sdk\platforms\android-23\android.jar] Reading library jar [C:\Swdev\Android\sdk\platforms\android-23\optional\org.apache.http.legacy.jar] I still don't see why there are duplicate definitions. -Robert Scott Hopkins, MN On Monday, February 15, 2016 at 11:20:29 AM UTC-6, RLScott wrote: > > I briefly added a HTTP library from org.apache.http... to try some things > out, and now I want to remove it as I no longer reference it in my code. I > removed the reference in the Project app module Dependencies and deleted > the apache module itself. > > Now the project builds without errors, as long as I don't enable Proguard > in my gradle file. If I set "minifyEnabled true" in the app > build.gradle, I get the following message in the gradle console: > > Note: duplicate definition of library class [android.net.http.SslError] > Note: duplicate definition of library class > [android.net.http.SslCertificate] > Note: duplicate definition of library class > [android.net.http.SslCertificate$DName] > 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] > > I think these were are left-over from my brief experiment with apach > http. I would like to get rid of these messages, even though they don't > seem to be harming the final APK file, which still runs fine. Is there > anywhere else I should look for references to this HTTP library? > > > -Robert Scott > Hopkins, MN > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/b3d67b5b-4173-400a-80b6-f4d45773d18a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

