Android打包失败Proguard returned with error code 1. See console
来源:互联网 发布:Tensorflow 字符识别 编辑:程序博客网 时间:2024/06/06 10:01
问题一:
[2013-06-28 11:12:10 - ] Proguard returned with error code 1. See console
[2013-06-28 11:12:10 - ] Note: there were 1 duplicate class definitions.
[2013-06-28 11:12:10 - ] Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find superclass or interface android.os.Parcelable$ClassLoaderCreator
....
问题一解决方法:
这个问题是由于代码混淆引起的,找不到引用包。
只需在你的proguard.cfg中添加如下两行即可。
-ignorewarnings
-libraryjars libs/android-support-v4.jar
你可以根据你的项目提示,添加需要的jar。
备注:
如果添加上面两行后依然打包不成功,那么你需要修改位于
android-sdk-windows\tools\proguard\bin的目录下的: proguard.bat 文件,
用记事本打开,修改如下:
把
call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
改为:
call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
即可!
此方法是把当前版本SDK改成和之前SDK版本中含有的proguard.bat文件一致!
方法一,测试后通过。
- Android打包失败Proguard returned with error code 1. See console
- Android打包失败Proguard returned with error code 1. See console
- Android打包失败Proguard returned with error code 1. See console
- Android打包失败Proguard returned with error code 1. See console
- Android打包失败Proguard returned with error code 1. See console
- android打包时报错Proguard returned with error code 1. See console
- 关于打包Android工程是报错 Proguard returned with error code 1. See console解决办法”
- Proguard returned with error code 1. See console解决办法”
- Proguard returned with error code 1. See console
- Proguard returned with error code 1. See console
- Proguard returned with error code 1. See console解决办法”
- Proguard returned with error code 1. See console
- Proguard returned with error code 1. see console
- Proguard returned with error code 1. See console
- Proguard returned with error code 1. See console解决办法”
- Proguard returned with error code 1. See console
- 混淆打包的Proguard returned with error code 1. See console错误
- Android混淆时出现的proguard returned with error code 1.See console问题
- android setContentView
- C# MessageBox 消息对话框
- Android数据加密之Des加密
- Xcode常用的快捷键
- EasyUI 扩展自定义EasyUI校验规则 验证规则(常用的)
- Android打包失败Proguard returned with error code 1. See console
- 常用springboot注解
- RelativeLayout布局中linearlayout布局居中
- 图片压缩
- 造车牌的代码
- oracle ceil和floor函数
- 0421
- 装完jdk后配置环境变量时,不小心把path里的内容删了,怎么办?
- 南阳OJ 题目34 韩信点兵