我在我的android项目中使用了AndroidAsync库。
现在在发布模式下编译我的项目失败了,因为发出了proguard警告:
...
[proguard] Note: duplicate definition of library class [com.koushikdutta.async.wrapper.DataEmitterWrapper]
[proguard] Reading library jar [C:\old c Program Files\android-sdk\platforms\android-16\android.jar]
[proguard] Note: there were 474 duplicate class definitions.
[proguard] Initializing...
[proguard] Warning: com.koushikdutta.async.http.AsyncHttpClient: can't find referenced method 'java.lang.String getHostString()' in class java.net.InetSocketAddress
[proguard] Warning: com.koushikdutta.async.http.spdy.Spdy3$Writer: can't find referenced method 'int deflate(byte[],int,int,int)' in class java.util.zip.Deflater
[proguard] Warning: there were 2 unresolved references to program class members.
[proguard] Your input classes appear to be inconsistent.
[proguard] You may need to recompile them and try again.
[proguard] Alternatively, you may have to specify the option
[proguard] '-dontskipnonpubliclibraryclassmembers'.
我将-libraryjars libs / androidasync-2.1.6.jar添加到proguard-project.txt但是没有解决问题。
答案 0 :(得分:0)
通过在proguard-project.txt中添加以下行来解决这个问题:
-dontwarn com.koushikdutta.**