使用jna的jar包时混淆编译遇到了这个问题,就在上面列出了jna相关的警告。在http://stackoverflow.com/questions/31643339/errorexecution-failed-for-task-apppackagerelease-unable-to-compute-hash找到了答案。需要在proguard-rules.pro中制定编译规则,将jna相关包的警告忽略。-keep classcom.sun.jna.** { *; }-dontwarncom.sun.jna.**注意,如果是以module引入的,需要在主app中的proguard-rules.pro文件中忽略。原文如下:All the current answers to this question are just giving the Proguard rules that worked for them, every fix will be different. First off, confirm it’s a Proguard problem by checking that the classes-proguard directory is somewhere in the error message, something like this: Unable to com
...
继续阅读
(43)