gpt4 book ai didi

integration - 错误 :Execution failed for task ':app:packageRelease' . > 无法计算 ..\app\build\intermediates\classes-proguard\..\release\classes.jar 的哈希值

转载 作者:行者123 更新时间:2023-12-04 14:26:09 29 4
gpt4 key购买 nike

当我从 gradle 文件启用 Proguard 并生成发布构建文件时,我收到以下错误消息。

Exception while processing task java.io.IOException: proguard.ParseException: Expecting type and name instead of just '' before '(' in line 169 of file 'S:\workspace\Projects..\app\build\intermediates\proguard-rules..\release\aapt_rules.txt' at com.android.build.gradle.tasks.AndroidProGuardTask$1.run(AndroidProGuardTask.java:117) at com.android.builder.tasks.Job.runTask(Job.java:48) at com.android.build.gradle.tasks.SimpleWorkQueue$EmptyThreadContext.runTask(SimpleWorkQueue.java:41) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:227) at java.lang.Thread.run(Thread.java:745) Error:proguard.ParseException: Expecting type and name instead of just '' before '(' in line 169 of file 'S:\workspace\Projects..\app\build\intermediates\proguard-rules..\release\aapt_rules.txt' at proguard.ConfigurationParser.parseMemberSpecificationArguments(ConfigurationParser.java:908) at proguard.ConfigurationParser.parseClassSpecificationArguments(ConfigurationParser.java:748) at proguard.ConfigurationParser.parseKeepClassSpecificationArguments(ConfigurationParser.java:534) at proguard.ConfigurationParser.parse(ConfigurationParser.java:165) at proguard.gradle.ProGuardTask.getConfiguration(ProGuardTask.java:1142) at proguard.gradle.ProGuardTask.proguard(ProGuardTask.java:1074) at com.android.build.gradle.tasks.AndroidProGuardTask.doMinification(AndroidProGuardTask.java:139) at com.android.build.gradle.tasks.AndroidProGuardTask$1.run(AndroidProGuardTask.java:115) ... 4 more Error:Execution failed for task ':app:packageProRelease'. > Unable to compute hash of S:\workspace\Projects\app\build\intermediates\classes-proguard\Pro\release\classes.jar



我在代码中使用了以下库:
  • AndroidScanLib.jar
  • apache-mime4j-core-0.7.jar
  • httpclient-4.1.2.jar
  • httpmime-4.2.3.jar
  • libGoogleAnalyticsServices.jar
  • MobileImagingEngine.jar
  • MobileImagingEngine_Doc.jar
  • SmartScan.jar
  • sqlcipher.jar
  • 最佳答案

    一个奇怪的解决方法:禁用 minifyEnabled (minifyEnabled false),生成签名的 APK,然后重新启用它 (minifyEnabled true) 并再次生成签名的 APK。希望这有效。

    关于integration - 错误 :Execution failed for task ':app:packageRelease' . > 无法计算 ..\app\build\intermediates\classes-proguard\..\release\classes.jar 的哈希值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32370525/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com