【问题标题】:Where is the 'dx' tool located in the Android SDK?Android SDK 中的“dx”工具在哪里?
【发布时间】:2013-12-20 14:23:35
【问题描述】:

我刚刚安装了最新的Android SDK。

但我找不到 dx 工具(用于将 .class 转换为 .dex 文件)。既不在platform-tool/ 之下,也不在tools/ 之下。那么我在哪里可以找到我的 dx 工具?

(使用 Eclipse 中的 Android SDK Manager,我安装了 Android SDK 工具Android SDK 平台工具Android SDK 构建工具,以及所有 Android 平台,从 API 3 到 API 19。)

【问题讨论】:

  • adt-bundle-mac-x86_64-20130917/sdk//build-tools/android-4.3/dx
  • 找到了,但是当我在那个路径下运行 dx 时,我得到了“dx: command not found”
  • 你之前加点了吗? ./build-tools/android-4.3/dx
  • 我在android-4.3/下
  • 那么你必须使用 ./dx 吗?

标签: android android-sdk-tools


【解决方案1】:

dx 工具位于build-tools/android-{version} 内。

如果您在目录android-{version} 中,则可以在shell 中输入./dx,否则输入dx 的整个路径。

【讨论】:

    【解决方案2】:

    我在“android-sdk\build-tools\any-sdk-build-tool-version”下找到它。

    【讨论】:

    • 开启Windows?你能提供一个完整路径的example吗?请通过editing (changing) your answer 回复,而不是在 cmets 中(without "Edit:"、"Update:" 或类似的 - 答案应该看起来好像是今天写的)。
    【解决方案3】:

    您将在 \platforms\any-platform\tools\dx.bat 中找到它。

    【讨论】:

    • 我在 /platforms/any-platform/ 下没有 tools/ 文件夹
    • 这似乎在Windows 上(反斜杠和文件扩展名“bat”)。你能提供一个完整路径的例子吗?请通过editing (changing) your answer 回复,而不是在 cmets 中(without "Edit:"、"Update:" 或类似的 - 答案应该看起来像是今天写的)。
    猜你喜欢
    • 1970-01-01
    • 2016-05-24
    • 2012-03-11
    • 1970-01-01
    • 1970-01-01
    • 2015-04-14
    • 1970-01-01
    • 1970-01-01
    • 2012-01-19
    相关资源
    最近更新 更多