It seems pretty simple to me, but I can't do it at all.
I have npm install -g phonegap with everything successful and installing a telephone plug.
I follow the instructions from here http://phonegap.com/install/ . Then I created my project:
C:\var\www\sexdiaries.co.uk>phonegap create sexdiaries -n SexDiaries -i co.uk.sexdiaries.app
I then, as said here, tried to run andriod, but with the following errors
C:\var\www\sexdiaries.co.uk\sexdiaries>phonegap run andriod C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\lib\phonegap\run.js:72 self.phonegap.emit('log', 'detecting', platform.human, 'SDK environment... ^ TypeError: Cannot read property 'human' of undefined at RunCommand.execute (C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\lib\phonegap\run.js:72:52) at RunCommand.run (C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\lib\phonegap\run.js:55:10) at PhoneGap.run (C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\lib\phonegap\util\command.js:28:25) at CLI.module.exports [as run] (C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\lib\cli\run.js:38:14) at CLI.module.exports [as argv] (C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\lib\cli\argv.js:66:17) at Object.<anonymous> (C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js:24:21) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)
In addition, I imported the project created in Andriod Studio, but at the same time I get: Source files for your project not found
I know how to create a working project using phonegap 2.9. But can't decide what 3 offers?
So the question is, how can I get a valid local Android app using phoengap 3
android android-studio cordova
Jamie hutber
source share