Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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.

PATH="$PATH:/path/to/android-sdk-linux/tools"

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

or

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

 
discard

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.