0

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

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

5 Comments

Thanks Yusuf but I have actually seen this before and tried going through it but it is a little complex and I didnt quite understand
I added the specific line you need to the answer.
It says android_ndk_r5b is a directory?
the address is for wherever you installed Android. it might be android_sdk_version instead of android_ndk_version, but yeah.
Your android program may also be in E:/android/android-sdk-windows/tools, but probably isn't. See where that program is installed and set PATH to point to that.
0

SET:

export ANT_HOME=`cygpath –u “$ANT_HOME”` export JAVA_HOME=`cygpath –u “$JAVA_HOME”` export ANDROID_SDK=`cygpath –u “$ANDROID_SDK”` export ANDROID_NDK=`cygpath –u “$ANDROID_NDK”` 

in your .bash_profile in cygwin_path\home{username}

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.