Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-4846

Cannot install aerogear plugin in cordova 5.1.1

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • push
    • Windows 8.1, Cordova 5.1.1

      The aerogear plugin cannot be installed in Apache Cordova 5.1.1.

      Installing it like this:

      cordova plugin add org.jboss.aerogear.cordova.push

      The following error is shown:

      WARNING: org.jboss.aerogear.cordova.push has been renamed to aerogear-cordova-push. You may not be getting the latest version! We suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and `cordova plugin add aerogear-cordova-push`.
      Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins registry
      Installing "org.jboss.aerogear.cordova.push" for android
      Fetching plugin "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4" via git clone
      Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output:
      Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434987678438'...
      warning: Could not find remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.
      fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in upstream origin
      Unexpected end of command stream
      at ChildProcess.whenDone (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
      at ChildProcess.emit (events.js:110:17)
      at maybeClose (child_process.js:1015:16)
      at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
      Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output:
      Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434987678438'...
      warning: Could not find remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.
      fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in upstream origin
      Unexpected end of command stream
      at ChildProcess.whenDone (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
      at ChildProcess.emit (events.js:110:17)
      at maybeClose (child_process.js:1015:16)
      at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

      Installing it like this:

      cordova plugin add cordova plugin add aerogear-cordova-push

      Gets this error:

      WARNING: org.jboss.aerogear.cordova.push has been renamed to aerogear-cordova-push. You may not be getting the latest version! We suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and `cordova plugin add aerogear-cordova-push`.
      Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins registry
      npm http GET http://registry.cordova.io/org.jboss.aerogear.cordova.push
      npm http 304 http://registry.cordova.io/org.jboss.aerogear.cordova.push

      Installing "org.jboss.aerogear.cordova.push" for android
      Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git clone
      Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out to git ref "master".
      Installing "com.vladstirbu.cordova.promise" for android
      Fetching plugin "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4" via git clone
      Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output:
      Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...
      warning: Could not find remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.
      fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in upstream origin
      Unexpected end of command stream
      at ChildProcess.whenDone (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
      at ChildProcess.emit (events.js:110:17)
      at maybeClose (child_process.js:1015:16)
      at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
      Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output:
      Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...
      warning: Could not find remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.
      fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in upstream origin
      Unexpected end of command stream
      at ChildProcess.whenDone (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
      at ChildProcess.emit (events.js:110:17)
      at maybeClose (child_process.js:1015:16)
      at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

      Finally, installing it with the repository url:

      cordova plugin add https://github.com/aerogear/aerogear-pushplugin-cordova.git

      It's installed correctly, but at building time fails with this error:

      FAILURE: Build failed with an exception.

      It only happens with Cordova 5.1.1, with Cordova 4.x it's installed and built succesfully.

              edewit1@redhat.com Erik Jan de Wit
              fturizo Fabio Turizo (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: