【完美解决系列】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.SslError]
Note: duplicate definition of library class [android.net.http.SslCertificate$DName]
Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory]
Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver]
Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException]
Note: duplicate definition of library class [org.apache.http.params.HttpParams]

经过查看代码之后发现,原来其中一个module使用了和主程序一样的package导致的,把重复的package从module中删除即可解决问题咯!

你可能感兴趣的:(解决Android,bug,Android开发问题整理)