Ionic plugin add phonegap-plugin-push BREAKS APP

As soon as i add “ionic plugin add phonegap-plugin-push” it breaks the build. With the following errors. Everything compiles fine as soon as i remove that plugin.

I also have the latest Google Play Services, Google Repository, and all other supporting libraries installed through the “Android SDK”

I thought about messing with the build.gradle file. But i think it would be better if the bug with phonegap-plugin-push could be fixed instead.

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:support-v13:23+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v13/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v13/
file:/home/xxx/Android/Sdk/extras/google/m2repository/com/android/support/support-v13/maven-metadata.xml
file:/home/xxx/Android/Sdk/extras/google/m2repository/com/android/support/support-v13/
Required by:
:android:unspecified
Could not find com.android.support:support-v4:23.0.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/23.0.0/support-v4-23.0.0.pom
https://repo1.maven.org/maven2/com/android/support/support-v4/23.0.0/support-v4-23.0.0.aar
file:/home/xxx/Android/Sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.pom
file:/home/xxx/Android/Sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.aar
Required by:
:android:unspecified > com.google.android.gms:play-services-gcm:8.4.0 > com.google.android.gms:play-services-base:8.4.0 > com.google.android.gms:play-services-basement:8.4.0

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

I just tried this with a brand new project and got the same results. Maybe someone else could try it on there machine to see if i have a library problem with my computer.

$ ionic start myApp tabs
$ cd myApp/
$ ionic platform add android
$ ionic build

build success here

$ ionic plugin add phonegap-plugin-push --variable SENDER_ID=111111111111
$ ionic build

build fails here

There are some solutions on this Github issue page that will likely help. It looks like updating your Android sdk should fix the issue. Hope this helps!