私は私のAndroidのプロジェクトのための私のProGuardのを実行すると、次の警告を得る:ProGuard:ライブラリクラスの重複定義ですか?
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.
私はそれを無視してこの問題を解決するためにhereが見つかりました:
-keep class org.apache.http.** { *; }
-dontwarn org.apache.http.**
-keep class android.net.http.** { *; }
-dontwarn android.net.http.**
私は削除する方法が表示されません使用されたライブラリから複製されます。 dontwarn
を使用しても、警告は消えません。
これを無視するだけでこの警告を処理するのが正しい方法ですか、それが問題につながる可能性がありますか?
を。あなたはproguardの設定の中にアンドロイドライブラリjarを追加するかもしれない – Adem
あなたはそれの例を投稿してください。 Android plrguard defでは、libraryjarsを使用しないでください。参照:http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass – confile
あなたの 'progaurd'ルールファイルを投稿してください –