Android Studio 混淆打包 IOException: Please correct the above warnings first
来源:互联网 发布:ios图片模糊软件 编辑:程序博客网 时间:2024/06/10 01:58
Android studio 混淆打包时,出现Error:Execution failed for task ':app:proguardRelease'.
> java.io.IOException: Please correct the above warnings first.
Warning:org.apache.http.impl.conn.tsccm.RouteSpecificPool: can't find referenced class org.apache.commons.logging.LogFactoryWarning:org.apache.http.impl.conn.tsccm.RouteSpecificPool: can't find referenced class org.apache.commons.logging.LogWarning:org.apache.http.impl.conn.tsccm.RouteSpecificPool: can't find referenced class org.apache.commons.logging.LogFactoryWarning:org.apache.http.impl.conn.tsccm.RouteSpecificPool: can't find referenced class org.apache.commons.logging.LogWarning:org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager: can't find referenced class org.apache.commons.logging.LogFactoryWarning:org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager: can't find referenced class org.apache.commons.logging.LogWarning:org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager: can't find referenced class org.apache.commons.logging.LogFactoryWarning:org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager: can't find referenced class org.apache.commons.logging.LogWarning:org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1: can't find referenced class org.apache.commons.logging.LogWarning:there were 210 unresolved references to classes or interfaces. You may need to add missing library jars or update their versions. If your code works fine without the missing classes, you can suppress the warnings with '-dontwarn' options. (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)Warning:there were 1 unresolved references to library class members. You probably need to update the library versions. (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember):app:proguardRelease FAILEDError:Execution failed for task ':app:proguardRelease'.> java.io.IOException: Please correct the above warnings first.
依照以往的管理,warn将其忽略就好了。但是现在不能忽略,影响打包的正常进行。
在官网找到这么一句话,Manual -> Troubleshooting -> “Warning: can’t find referenced class”,“try your luck with the -ignorewarnings option, or even the -dontwarn option”。
打开proguard-rules.txt,加入-dontwarn org.apache.http.**即可。
重新执行Generate Signed APK,打包成功!
2 0
- Android Studio 混淆打包 IOException: Please correct the above warnings first
- Android编译运行项目时报错java.io.IOException: Please correct the above warnings first.
- Android ProGuard: Please correct the above warnings first的警
- android代码混淆报错总结:java.io.IOException: Please correct the above
- Gradle build报错:Please correct the above warnings first解决方案
- android studio处理百度定位异常 no found the liblocSDK4d.so file, please correct settings
- Android Studio 混淆打包
- android studio混淆打包
- Android studio 打包、混淆
- android studio混淆打包
- Android studio 打包混淆
- android studio 混淆打包
- Android Studio 混淆打包
- Android Studio 混淆打包
- android studio 混淆打包
- Android Studio 混淆打包
- Android Studio混淆打包
- Android Studio混淆打包
- JAVA编程思想之内部类
- PARALLEL hint
- 3des加密代码
- mysql两种表存储结构myisam和innodb的性能比较测试
- 仿QQ聊天(5)—聊天表情的适配
- Android Studio 混淆打包 IOException: Please correct the above warnings first
- 黑马程序员——JAVA基础----JAVA概述
- Derby数据库使用手册(1)-----------DDL
- UML之用例篇
- CSS框模型(Box Model)与图片透明属性
- Mac版Github客户端的配置和使用
- 位移枚举
- HttpClient4.2 Fluent API学习
- android一些你知道的或不知道的style