如何在Eclipse窗口中设置自动NDK构建?

时间:2013-06-14 05:55:29

标签: android windows eclipse android-ndk installation

我正在为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

2 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:0)

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

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