Error:Execution failed for task ':demo:packageRelease'. > Unable to compute hash of 路径\classes.jar
来源:互联网 发布:淘宝女郎叶青 编辑:程序博客网 时间:2024/06/05 14:44
关于Android studio 混淆代码报这个错的解决,以前用eclipse或者intellij idea对代码进行混淆的时候没有问题,但是在AS上就遇到了,百思不得其解,最后也被俺解决了,
报错全文:Error:Execution failed for task ':demo:packageRelease'.> Unable to compute hash of D:\testProject\demo\build\intermediates\classes-proguard\release\classes.jar
解决方法很简单,只要在混淆文本注释掉或者去掉 -libraryjars 就OK了,在eclipse 和 intellij idea中混淆时需要对用到的第三方jar包进行声明,而AS是不需要的,如图:
下面是AS混淆的开启配置,配置在主Module的build.gradle文件中:
buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg' }}
好了,现在又可以愉快的玩耍了
0 0
- Error:Execution failed for task ':demo:packageRelease'. > Unable to compute hash of 路径\classes.jar
- Android问题集锦之四十七: Error:Execution failed for task ':app:packageRelease'. > Unable to compute hash of
- Error:Execution failed for task ':app:packageRelease'. > Failed to read key brautyfarm from store "G
- Error:Execution failed for task ':app:packageRelease'. > Failed to read key key0 from store "C:\User
- android studio 报错Error:Execution failed for task ':app:packageRelease'. 解决方法
- Error:Execution failed for task ':app:clean'. > Unable to delete file: xxx.file
- Error:Execution failed for task ':app:clean'. > Unable to delete file: xxx.file
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: E:\jiajian\jiajian\app\b
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: /media/file/workspaces/a
- Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermediates
- Error:Execution failed for task ':app:clean'. > Unable to delete directory:
- Error:Execution failed for task ':app:clean'. > Unable to delete directory:
- Error: Execution failed for task ':app:clean'. Unable to delete file问题解决
- Gradle Error: Execution failed for task ':app:clean'. Unable to delete file
- Error:Execution failed for task ':app:clean'. > Unable to delete directory:......
- Android Error:Execution failed for task ':charts:clean'. > Unable to delete directory:
- Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermediates
- Error:Execution failed for task ':app:clean'. > Unable to delete file: xxx.file
- Linux系统图形界面和命令行界面之间的切换
- Iometer 使用界限值
- 01 netty介绍
- Nginx初探
- com 注册表信息
- Error:Execution failed for task ':demo:packageRelease'. > Unable to compute hash of 路径\classes.jar
- SpannableStringBuilder的妙用
- Android日志
- jQuery Timers插件
- iOS 9音频应用播放音频之第一个ios9音频实例
- Penn Treebank词性标记集
- 每日新知识
- 跟我一起写 Makefile
- 基于pjsip和webrtc封装sip客户端 技术选型