【问题标题】:How to set up Automatic NDK Builds in Eclipse windows?如何在 Eclipse 窗口中设置自动 NDK 构建?
【发布时间】:2013-06-14 05:55:28
【问题描述】:

我正在为 android 设置 ndk 环境。它给出了如下错误,请帮助我。谢谢。

Errors occurred during the build.
Errors running builder 'Integrated External Tool Builder' on project 'HelloNDK'.
Exception occurred executing command line.
Cannot run program "C:\Users\micro8\Desktop\adt-bundle-windows-x86\android-ndk-r8e\ndk-build" (in directory "C:\Users\micro8\Workspace\HelloNDK"): CreateProcess error=193, %1 is not a valid Win32 application
Exception occurred executing command line.
Cannot run program "C:\Users\micro8\Desktop\adt-bundle-windows-x86\android-ndk-r8e\ndk-build" (in directory "C:\Users\micro8\Workspace\HelloNDK"): CreateProcess error=193, %1 is not a valid Win32 application

【问题讨论】:

    标签: android windows eclipse android-ndk installation


    【解决方案1】:

    在 Windows 上,您应该运行 ndk-buil.cmd 而不是 ndk-build

    【讨论】:

      【解决方案2】:

      因为您的问题是如何在 Eclipse Windows 中“自动”设置 Ndk 构建,所以这里是这样做的过程。如果您遵循它,则每次更改存储的文件时都不需要构建 Ndk您的 jni 文件夹。请尝试为我们提供更全面的标题,以便在您的问题中获得最佳结果。 :)

      http://mobilepearls.com/labs/ndk-builder-in-eclipse/

      【讨论】:

      • 请注意 link-only answers 是不鼓励的,所以答案应该是寻找解决方案的终点(与另一个中途停留的参考相比,随着时间的推移往往会变得陈旧)。请考虑在此处添加独立的概要,并保留链接作为参考。
      猜你喜欢
      • 1970-01-01
      • 2012-08-03
      • 2012-03-25
      • 1970-01-01
      • 2016-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多