Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to launch cygpath in android

When i am trying to import a project to my workspace it shows an error

[2013-03-17 16:14:15 - Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, The system cannot find the file specified

this project contains jni libraries,it is a ndk based project.why this error happen i cant import this project to my system.

like image 560
jithu Avatar asked Mar 17 '13 10:03

jithu


2 Answers

go to your project right click there.then take properties and select the c/c++ build and there you can see the build settings .and in the build settings give the path of ndk in your system like:

D:\android\android-ndk-r8d\ndk-build.cmd NDK_DEBUG=1

Now clean your project and run. Thats it.

like image 111
Jithu P.S Avatar answered Oct 12 '22 00:10

Jithu P.S


With NDK r8d, you don't need cygwin. Maybe the project you import was tuned for an older version, and maybe it defined ndk-build.sh as the C++ build command. You should use ndk-build.cmd or simply ndk-build (utilizing Windows command line conventions)

like image 3
Alex Cohn Avatar answered Oct 12 '22 01:10

Alex Cohn