Google Chrome app while running on Android emulator giving error

I am trying to run a simple Hello

chrome app in an android emulator. After going to the app directory on startup

cca emulate android


After a while, I get the error:

Here is the complete cmd line answer:

cca v0.4.1
Running command: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run --emulator
WARNING : no emulator specified, defaulting to myAvd
Waiting for emulator...
emulator: emulator window was out of view and was recentered

Booting up emulator (this may take a while).......................BOOT COMPLETE

FAILURE: Build failed with an exception.

* Where:
Build file '/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle' line: 175

* What went wrong:
A problem occurred evaluating root project 'android'.
> No match found

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 3.074 secs

                    throw e;
Error code 1 for command: /home/jay/HelloChromeAppOnAndroid/platforms/android/gradlew with args: assembleArmv7Debug,-b,/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-x,lint,-x,lintVitalX86Release,-x,lintVitalArmv7Release,-x,compileLint,-x,copyReleaseLint,-x,copyDebugLint
Error: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run: Command failed with exit code 8
    at ChildProcess.whenDone (/home/jay/.nvm/v0.10.32/lib/node_modules/cca/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)



source to share

1 answer

It looks like the issue has been fixed. I posted the issue to GitHub and it has now been resolved.

All you have to do is

npm install -g cca


to update the toolchain.



All Articles