MobileChromeApps / mobile-chrome-apps

Chrome apps on Android and iOS
BSD 3-Clause "New" or "Revised" License
2.5k stars 347 forks source link

Running Android Emulator is failing #330

Open shelleyp opened 10 years ago

shelleyp commented 10 years ago

Created a Chrome app using the new CDE, tested and it works, and then copied the source using cca's "copy-from" option. After prepare, when I try to run in an Android emulator, I get the following error:

C:\Users\shelleyp\work\chrome\WhereAmI2\platforms\android\cordova\node_modules\q \q.js:126 throw e; ^ Error code 1 for command: cmd with args: /s,/c,C:\Users\shelleyp\work\chrome\Whe reAmI2\platforms\android\gradlew,assembleDebug,-b,C:\Users\shelleyp\work\chrome\ WhereAmI2\platforms\android\build.gradle,-Dorg.gradle.daemon=true,-x,lint,-x,lin tVitalX86Release,-x,lintVitalArmv7Release,-x,compileLint,-x,copyReleaseLint,-x,c opyDebugLint Error: C:\Users\shelleyp\work\chrome\WhereAmI2\platforms\android\cordova\run.bat : Command failed with exit code 8 at ChildProcess.whenDone (C:\Users\shelleyp\AppData\Roaming\npm\node_modules \cca\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135 :23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5)

Note that this environment already has a working Cordova installation, and have had no problems using the Emulator with apps I've created directly in vanilla Cordova.

agrieve commented 10 years ago

Hey, thanks for the report! Looks like the actual error message might be even further up the page though. Can you see if there are any other error messages that come before what you've pasted?

shelleyp commented 10 years ago

No, this is it. I'm right in the middle of a tight deadline, but I'll revisit next week and see if I can get better error documentation, and then update this issue.