Search code examples
androidpathandroid-ndkcygwin

ANDROID NDK - android: command not found


I was trying to go through the first sample exercise provided in Android NDK. I was trying to run the following command on cygwin

android update project –p

However, I am getting android: command not found error.

I checked my PATH variables. It already had ANDROID_HOME , ANDROID_HOME/platforms, ANDROID_HOME/tools, ANDROID_HOME/platform-tools

One thing that I noticed was that there is no application named android in any of the folder. There is just an executable JAR file named android. Is that OK , or , this is my mistake ?

My PATH value added on request

bin:/cygdrive/c/Program Files/Java/jdk1.7.0_03/bin:/cygdrive/c/Program Files/Java/jdk1.7.0_03/include:/cygdrive/c/Ant2/bin:/cygdrive/c/Android/android-sdk/tools:/cygdrive/c/Android/android-sdk/platform-tools:/cygdrive/c/android-ndk/android-ndk-r8b:/cygdrive/c/Program Files/Java/jdk1.7.0_03/lib:/cygdrive/c/Android/android-sdk/platforms:/cygdrive/c/Program Files/Java/jdk1.7.0_03/bin:/usr/lib/lapack

Can anyone predict what am I missing ?

Thanks :)


Solution

  • use:

    $ android.bat update project --path .