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
Searched in the following locations:
Required by:
Could not find
Searched in the following locations:
Required by:
:android:unspecified > > >

  • 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!