Search code examples
androidandroid-ndkcygwin

cygwin cannot find android


Hi I'm following an android tutorial on ndk (Hello-jni) and I am trying to run the following command within cygwin

        android update project -p . -s

but I get the following message:

      -bash: android: command not found

I am new at this and I assume this is because cygwin isn't hooked up properly to Android but I do not know how to fix this. Can anyone help?

Thanks in advance


Solution

  • You need to set your path, so that cygwin knows where to find the android program.

    In here, see the line that says,

    set PATH=E:/android/android-sdk-windows/tools;E:/android/android-ndk-r5b