android - Cordova, Node.js, Phonegap -


i running through tutorial:

http://docs.phonegap.com/en/2.9.0/guide_getting-started_android_index.md.html#android%20platform%20guide

i created project within workspace with:

cordova create hello2 com.example.hello2 "hello world 2" 

cd dir

and now:

cordova platform add android 

gives me following error:

the command `android` failed. make sure have latest android sdk installed, , `android` command (inside tools/ folder) added path. output: /bin/sh: android: command not found 

my export path looks this:

export path=${path}:/documents/devfolder/adt-bundle-mac-x86_64-20130522/sdk/platform-tools:/documents/devfolder/adt-bundle-mac-x86_64-20130522/sdk/tools 

what's wrong path ?

or else cause error. and, yes did install android sdk. according this:

http://developer.android.com/sdk/installing/bundle.html

as stated in comments, problem related way path android executable defined. necessary define these paths absolute.

as object has no method 'tmpdir' error, quick google search revealed following remedy: https://groups.google.com/forum/#!msg/phonegap/skq3mrripng/dv6wyotddf0j


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -