【问题标题】:Dexguard running during debug build in ant?在 ant 中调试构建期间运行的 Dexguard?
【发布时间】:2012-11-01 19:47:13
【问题描述】:

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

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

[dexguard] 转换时出现意外错误:
[dexguard] 类 = [com/framework/notification/NotificationDetailBuilder]
[dexguard] 方法 = [getScheduledNotificationDetail()Lcom/framework/base/notification/NotificationDetail;]
[dexguard] Exception = [java.lang.IllegalStateException](负变量 v-1 用于指令 [iget v-1, v0, field_12165])
[dexguard] at com.saikoa.dexguard.fS.b(dexGuard:1219)
等等等等。

首先,我做了什么愚蠢的事情来让 dexguard 在调试期间运行。
其次,这个错误到底意味着什么?

【问题讨论】:

    标签: java android ant proguard


    【解决方案1】:

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

    (我是 ProGuard 和 DexGuard 的开发者)

    【讨论】:

    • 嗨@Eric。我正在使用dexguard(com.saikoa.dexguard.eclipse.adt-22.0.0.v5_4_17)。但它不起作用
    • 我只是复制了这个jar文件并将其放入我的eclipse的dropins文件夹中,然后编译了我的项目,但它不起作用
    • 您应该在文档中查看 Eclipse 和 Android 插件的最低版本要求。如果您要导出您的应用程序,您可能需要一些额外的配置,就像使用 ProGuard 一样。在 saikoa.com 上与我联系以获取详细信息,我们将对其进行调查。
    • 嗨@Eric Lafortune。请在此链接上回答我:-stackoverflow.com/questions/20755671/implementation-of-dexguard
    猜你喜欢
    • 1970-01-01
    • 2011-07-29
    • 2012-01-16
    • 2020-04-23
    • 2023-03-31
    • 2015-04-24
    • 1970-01-01
    • 1970-01-01
    • 2011-04-10
    相关资源
    最近更新 更多