Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a beginner to linux fedora. Actually I am developing an android phonegap project with linux and I have followed the following steps

  1. Open Terminal and move to the bin folder present in the android directory, using cd command of terminal.

  2. Type the ./create {project_folder_path} {package_name} {project_name} then press Enter. eg. ./create ~Desktop/myproject com.oodles oodles

But when I am trying to create a new project it is giving the following error

[root@NikhilAgrawal bin]# ./create Desktop/myprojects com.walkover.tester Tester
which: no android in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/Nikhil/.local/bin:/home/Nikhil/bin)
An unexpected error occurred: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" exited with 1
Deleting project...

Any ideas how to fix this?

share|improve this question
up vote 1 down vote accepted

Add /path/to/android-sdk-linux/tools to your PATH, where /path/to/android-sdk-linux is the location where you installed the Android SDK in the previous step.


You may want to add /path/to/android-sdk-linux/platform-tools as well (it contains adb).

Alternatively, create symbolic links to android and adb in a directory on your PATH:

sudo ln -s /path/to/android-sdk-linux/platform-tools/adb /path/to/android-sdk-linux/tools/android /usr/local/bin


ln -s /path/to/android-sdk-linux/platform-tools/adb /path/to/android-sdk-linux/tools/android ~/bin
share|improve this answer
Thank you @Gilles. It worked for me thanks for helping. – Nikhil Agrawal Feb 13 '13 at 5:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.