Reputation: 810
I am trying to build my first phonegap app using version 3.0
I followed theses steps:
Here is the code sample
$ phonegap create my-app
$ cd my-app
$ phonegap run android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
[error] An error occured during creation of android sub-project. /bin/sh: /Users/mac/.cordova/lib/android/cordova/3.0.0/bin/create: No such file or directory
I found that the directory /Users/mac/.cordova/lib/android/cordova/3.0.0 is empty
Phonegap version is
phonegap --version
3.0.0-0.14.0
Any suggestions ?
Upvotes: 2
Views: 2574
Reputation: 10081
I ran into the same problem. I fixed it by downloading the missing files (the whole of the bin directory) as a zip from the cordova-android project on github and extracting them to the empty /Users/mac/.cordova/lib/android/cordova/3.0.0 directory.
I also found I had to run it the command as sudo.
Upvotes: 5