Ionic 1.7.15 build fails with Push Plugin


#1

I had been using phonegap-plugin-push successfully. Having upgraded to Ionic 1.7.15 the app was no longer registering correctly. I removed and re-added the plugin and now the app will not build. Without it, the build runs fine, with it I get the following error:

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 com.android.support:support-v4:23.4.0.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
         file:/C:/Users/User/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         file:/C:/Users/User/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
         file:/C:/Users/User/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         file:/C:/Users/User/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
     Required by:
         :android:unspecified > com.android.support:support-v13:23.1.0
   > Could not find com.android.support:support-v4:23.4.0.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
         file:/C:/Users/User/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         file:/C:/Users/User/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
         file:/C:/Users/User/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         file:/C:/Users/User/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
     Required by:
         :android:unspecified > com.google.android.gms:play-services-gcm:8.1.0 > com.google.android.gms:play-services-base:8.1.0 > com.google.android.gms:play-services-basement:8.1.0

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

BUILD FAILED

Total time: 5.161 secs
Error: Error code 1 for command: cmd with args: /s,/c,"C:\cursedearth\code\hubcontroller_ionic\hubdeployfix\platforms\android\gradlew cdvBuildDebug -b C:\cursedearth\code\hubcontroller_ionic\hubdeployfix\platforms\android\build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"

#2

It appears that this is due to a conflict between a Google update and the phonegap-plugin-push.


#3

A note for closure; updating the Android Support Repository (v32) via the SDK manager in Android Studio addresses this issue. A side effect was that $window.innerHeight/Width now register as 0 so I switched to using the Screen object instead. Hopefully there aren’t (m)any more little gothchas.


#4

how to solve this?! I have no clue!


#5

so what’s the solution actually? I’m stuck