gpt4 book ai didi

java - Dexguard 在 Ant 调试构建期间运行?

转载 作者:行者123 更新时间:2023-11-30 03:57:05 27 4
gpt4 key购买 nike

这实际上是一个由两个部分组成的问题(让我知道是否应该拆分问题)。我正在使用 Intellij 作为 IDE。如果我从那里运行,构建工作完全正常。然而,当我使用 ant 时,事情开始变得一团糟。

在为我的应用程序编写自动化测试的过程中,我发现了两件事:首先,当我ant clean debug 时,dexguard 会运行。其次,当我这样做时,出现以下错误,但构建“成功”完成:

[dexguard] Unexpected error while converting:
[dexguard] Class = [com/framework/notification/NotificationDetailBuilder]
[dexguard] Method = [getScheduledNotificationDetail()Lcom/framework/base/notification/NotificationDetail;]
[dexguard] Exception = [java.lang.IllegalStateException] (Negative variable v-1 for instruction [iget v-1, v0, field_12165])
[dexguard] at com.saikoa.dexguard.fS.b(dexGuard:1219)
etc. etc.

所以首先,我做了什么蠢事让 dexguard 在调试期间运行。
其次,这个错误究竟意味着什么?

最佳答案

在标准的 Android 构建过程中,ProGuard 仅适用于发布构建。 DexGuard 在构建过程中集成得更紧密;它适用于调试版本和发布版本。您可以通过 saikoa.com 与我联系,以调查您收到的消息。第一步是确保您使用的是最新版本的 DexGuard。

(我是ProGuard和DexGuard的开发者)

关于java - Dexguard 在 Ant 调试构建期间运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13184401/

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