【问题标题】:Build android application for release using ant in eclipse在eclipse中使用ant构建要发布的android应用程序
【发布时间】:2012-01-20 14:23:11
【问题描述】:

在 Eclipse 中签署和构建我的应用程序以通过 ant 发布时出现错误。

我正在使用 android sdk 附带的 ant 任务。

Keystore 文件、别名、pass 在 ant.properties 中定义。

构建失败

C:\程序文件 (x86)\Android\android-sdk-windows\tools\ant\build.xml:981: 执行此行时发生以下错误:
C:\程序文件 (x86)\Android\android-sdk-windows\tools\ant\build.xml:995: 执行 失败:java.io.IOException:无法运行程序“jarsigner.exe”(在 目录 "C:\dev\projects\sample1"): CreateProcess error=2, The 系统找不到指定的文件

在此处遵循说明:http://developer.android.com/guide/developing/building/building-cmdline.html

【问题讨论】:

    标签: android eclipse ant


    【解决方案1】:

    您的路径中需要有文件夹 YOUR_JDK\bin

    (YOUR_JDK 是您安装 Java JDK 的文件夹)

    【讨论】:

    • 然后重启eclipse
    【解决方案2】:

    它在错误的位置寻找 Jar 签名者。

    可能值得检查您的 path environment variable is set up correctly(以便它可以找到 jarsigner.exe)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-20
      • 1970-01-01
      相关资源
      最近更新 更多