Have you installed any SDKs for Android? What happens when you run the Android command? On 4 Apr 2014 09:18, "Igor Costa" <[email protected]> wrote:
> Yep > > I do, here's > > C:\Users\riacycle>ant -version > Apache Ant(TM) version 1.9.3 compiled on December 23 2013 > > > > > ---------------------------- > Igor Costa > www.igorcosta.com > www.igorcosta.org > > > On Fri, Apr 4, 2014 at 12:46 PM, Shazron <[email protected]> wrote: > > > Igor, > > Do you have ANT installed? > > > > > > On Fri, Apr 4, 2014 at 4:42 AM, Igor Costa <[email protected]> wrote: > > > > > Hi there Joe. > > > > > > This is what happens. > > > > > > c:\xampp\htdocs\madeiraint\mobile\madeiraint>cordova platform add > android > > > Creating android project... > > > > > > > > > > > > C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:126 > > > throw e; > > > ^ > > > Error: An error occurred while listing Android targets > > > at > > > > > > > > > C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\lib\check_reqs.js:87:29 > > > at _rejected > > > > > > > > > (C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:808:24) > > > at > > > > > > > > > C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:834:30 > > > at Promise.when > > > > > > > > > (C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:1079:31) > > > at Promise.promise.promiseDispatch > > > > > > > > > (C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:752:41) > > > at > > > > > > > > > C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:574:44 > > > at flush > > > > > > > > > (C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:108:17) > > > at process._tickCallback (node.js:415:13) > > > Error: cmd: Command failed with exit code 8 > > > at ChildProcess.whenDone > > > > > > > > > (C:\Users\riacycle\AppData\Roaming\npm\node_modules\cordova\src\superspawn.js:112:23) > > > at ChildProcess.EventEmitter.emit (events.js:98:17) > > > at maybeClose (child_process.js:743:16) > > > at Process.ChildProcess._handle.onexit (child_process.js:810:5) > > > > > > c:\xampp\htdocs\madeiraint\mobile\madeiraint> > > > > > > > > > > > > > > > > > > > > > ---------------------------- > > > Igor Costa > > > www.igorcosta.com > > > www.igorcosta.org > > > > > > > > > On Fri, Apr 4, 2014 at 1:28 AM, Joe Bowser <[email protected]> wrote: > > > > > > > PhoneGap is a downstream distribution of Cordova that Adobe maintains > > > > and there are obvious differences in the CLI. It'd be nice if the > > > > docs were for PhoneGap's CLI and not Cordova's CLI, but even though I > > > > work for Adobe, I have no idea where our users are supposed to file > > > > these bugs. I just know that they shouldn't be in JIRA. > > > > > > > > What happens when you use Cordova's CLI? > > > > > > > > On Thu, Apr 3, 2014 at 9:10 PM, Igor Costa <[email protected]> > > wrote: > > > > > Trying to use the lastest build 3.4.19.11 > > > > > > > > > > Machine Specs: > > > > > Win 7 > > > > > Android sdk latest > > > > > > > > > > Expect result: > > > > > > > > > > Add Android as platform > > > > > > > > > > > > > > > Result gotten: > > > > > > > > > > > > > > > c:\project_to_path>phonegap run android > > > > > [phonegap] detecting Android SDK environment... > > > > > [phonegap] using the local environment > > > > > [phonegap] adding the Android platform... > > > > > > > > > > > > > > > > > > > > C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:126 > > > > > throw e; > > > > > ^ > > > > > Error: An error occurred while listing Android targets > > > > > at > > > > > > > > > > > > > > > C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\lib\check_reqs.js:87:29 > > > > > at _rejected > > > > > > > > > > > > > > > (C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:808:24) > > > > > at > > > > > > > > > > > > > > > C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:834:30 > > > > > at Promise.when > > > > > > > > > > > > > > > (C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:1079:31) > > > > > at Promise.promise.promiseDispatch > > > > > > > > > > > > > > > (C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:752:41) > > > > > at > > > > > > > > > > > > > > > C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:574:44 > > > > > at flush > > > > > > > > > > > > > > > (C:\Users\riacycle\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:108:17) > > > > > at process._tickCallback (node.js:415:13) > > > > > [error] cmd: Command failed with exit code 8 > > > > > > > > > > c:\project_to_path> > > > > > > > > > > > > > > > Also, docs.phonegap.com are very confused, npm install -g cordova > > asks > > > > to > > > > > add platform add Android > > > > > > > > > > Phonegap node asks to add phonegap run android. > > > > > > > > > > > > > > > is there a way I can update those docs and anyone see this error? > > > > > > > > > > Best Regards > > > > > > > > > > ---------------------------- > > > > > Igor Costa > > > > > www.igorcosta.com > > > > > www.igorcosta.org > > > > > > > > > >
