android - Cordova build issue in ubuntu -


i following tutorials @ http://www.gaggl.com/2014/04/apache-cordova-development-environment-install-on-ubuntu/

cordova build failing message:

:~/projects/hello$ sudo cordova build

running command: /home/skn/projects/hello/platforms/android/cordova/build  [error: android_home not set , "android" command not in path. must fulfill @ least 1 of these conditions.] error building 1 of platforms: error: /home/skn/projects/hello/platforms/android/cordova/build: command failed exit code 2 may not have required environment or os build project error: /home/skn/projects/hello/platforms/android/cordova/build: command failed exit code 2 @ childprocess.whendone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) @ childprocess.emit (events.js:98:17) @ maybeclose (child_process.js:766:16) @ process.childprocess._handle.onexit (child_process.js:833:5) 

i have included android in path variable also.

skn@bangre:~/projects/hello$ echo $path /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/bin/java:/usr/bin/ant:.:/home/skn/android-sdk-linux/tools:/home/skn/android-sdk-linux/platform-tools 

from screenshot below can see sdk installed enter image description here

also have following check passing.

skn@bangre:~/.cordova/lib/npm_cache/cordova-android/3.7.1/package/bin$ ./android_sdk_version   21  skn@bangre:~/.cordova/lib/npm_cache/cordova-android/3.7.1/package/bin$ ./check_reqs  looks environment supports cordova-android development! 

please me point out issue.

yes turns out cordova node.js scripts assumes android sdk directory name 'android-sdk' , ubuntu when unzip 'android-linux-sdk'


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -