android - Build error when using Cordova google-analytics-plugin -


i trying add https://github.com/nickdrewe/google-analytics-plugin cordova project. build failed. here tried:

  1. install google playservices 21 instead of 19. edit plugin.xml point 21 still don't work.

  2. remove google playservices , use framework instead https://github.com/nickdrewe/google-analytics-plugin/commit/cb8e78f17472ae2c8b4db613273764a7260b4e34 still build error

  3. i tried android update sdk --no-ui --all --filter "extra-google-m2repository" https://groups.google.com/forum/#!topic/adt-dev/uxw0hl0uvxk

the error got:

failure: build failed exception.  * went wrong: failed notify build listener.  * try: run --stacktrace option stack trace. run --info or --debug option more log output.  /vagrant/myproject/platforms/android/cordova/node_modules/q/q.js:126                     throw e;                           ^ error code 1 command: /vagrant/myproject/platforms/android/gradlew args: cdvbuilddebug,-b,/vagrant/myproject/platforms/android/build.gradle,-dorg.gradle.daemon=true error building 1 of platforms: error: /vagrant/myproject/platforms/android/cordova/build: command failed exit code 1 may not have required environment or os build project error: /vagrant/myproject/platforms/android/cordova/build: command failed exit code 1     @ childprocess.whendone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)     @ childprocess.emit (events.js:110:17)     @ maybeclose (child_process.js:1015:16)     @ process.childprocess._handle.onexit (child_process.js:1087:5) 

i using ionic 1.5.5 , cordova android 4.0.2

any help?

i open alternative google analytics plugin found https://github.com/phonegap-build/gaplugin causing android app crashing upon start.

i tried reproduce error - , there none. build new project plugin linked , console plugin. build totaly fine , successfull.

as far see edited gradle build settings speeding gradle build. -dorg.gradle.daemon=true... far read through documents must -org.gradle.daemon=true or d sth operator or variable has there?

what can try run cmd administrator.

cordova downgrade 5.1.1 4.3.2 fixed problem many users.


Comments