I haven't been capable of building a cordova project for android using the cordova aerogear plugin. First, the plugin is installed like this:

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

And the plugin is installed succesfully:

Fetching plugin "https://github.com/aerogear/aerogear-pushplugin-cordova.git" via git clone
Repository "https://github.com/aerogear/aerogear-pushplugin-cordova.git" checked out to git ref "master".
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".

However when building for Android i always get the following errors:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find any version that matches com.android.support:appcompat-v7:22.+.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml
         https://repo1.maven.org/maven2/com/android/support/appcompat-v7/
     Required by:
         :android:unspecified
   > Could not find org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT.
     Searched in the following locations:
         https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml
         https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom
         https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar
     Required by:
         :android:unspecified
   > Could not find org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT.
     Searched in the following locations:
         https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml
         https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom
         https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar
     Required by:
         :android:unspecified
   > Could not find org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT.
     Searched in the following locations:
         https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml
         https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom
         https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar
     Required by:
         :android:unspecified

I tried unistalling cordova and npm, but to no avail i haven't been capable of building an app that uses AeroGear.

Any assistance is gladly welcome.

P.S: Using Cordova 5.1.1 for Android 5.1