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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With