Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android update project –path "command not found"

I'm trying to develop an app using OCR that runs on Android. I am following the steps in

http://gaut.am/making-an-ocr-android-app-using-tesseract/

I have passed the “ndk-build” step and advanced to the “android update project –path .” step . But it shows "android: command not found error". I am new to android development. Can anyone please tell me how do I set path variables.

Thanks in advance.

like image 606
Akhila Nair Avatar asked May 28 '12 12:05

Akhila Nair


2 Answers

Edit to Festus's answer:

don't do this: export PATH=$ANDROID_HOME/tools. this will change the entire PATH variable.

Instead use the following:

export PATH=$PATH:$ANDROID_HOME/tools

export PATH=$PATH:$ANDROID_HOME/platform-tools

This should add the path for tools and platform-tools to the existing PATH.

like image 137
siriD Avatar answered Oct 16 '22 09:10

siriD


If you are using mac or Linux OS

Assuming that you have set ANDROID_HOME to point to the sdk install:

export ANDROID_HOME=/Applications/android-sdks

Add Tools to PATH

export PATH=${PATH}:${ANDROID_HOME}/tools

Add platform-tools to PATH

export PATH=${PATH}:${ANDROID_HOME}/platform-tools
like image 32
Festus Tamakloe Avatar answered Oct 16 '22 08:10

Festus Tamakloe