首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用AndroidAsync预防错误

使用AndroidAsync预防错误
EN

Stack Overflow用户
提问于 2016-03-29 15:03:24
回答 1查看 273关注 0票数 0

我已经在我的安卓项目中使用了AndroidAsync库。

现在在发布模式下编译我的项目失败,因为发出了预警器警告:

代码语言:javascript
运行
复制
...
[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中,但这并没有解决问题。

EN

回答 1

Stack Overflow用户

发布于 2016-03-29 16:12:40

显然,通过将以下行添加到proguard-project.txt即可解决此问题:

代码语言:javascript
运行
复制
-dontwarn com.koushikdutta.**
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36277554

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档