Issue with Localytics PhoneGap/Cordova plugin integration into Ionic app


#1

I’m trying to integrate Localytics (plugin for Cordova) and getting an error while building up with android:

D:\projects\ionic\first>ionic build android
Running command: "C:\Program Files\nodejs\node.exe" D:\projects\ionic\first\hook
s\after_prepare\010_add_platform_class.js D:\projects\ionic\first
add to body class: platform-android
ANDROID_HOME=C:\Users\yohoz_000\AppData\Local\Android\android-sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_65


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-v4:+.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/maven-met
adata.xml
         https://repo1.maven.org/maven2/com/android/support/support-v4/
     Required by:
         :android:unspecified
   > Could not find any version that matches com.google.android.gms:play-service
s-gcm:+.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm
/maven-metadata.xml
         https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm
/
     Required by:
         :android:unspecified
   > Could not find any version that matches com.google.android.gms:play-service
s-ads:+.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads
/maven-metadata.xml
         https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads
/
     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.
BUILD FAILED

Total time: 3.453 secs
Error: Error code 1 for command: cmd with args: /s,/c,"D:\projects\ionic\first\p
latforms\android\gradlew cdvBuildDebug -b D:\projects\ionic\first\platforms\andr
oid\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"`

Tried to install plugins like android.support.v4 21.0.1 "Android Support v4", no luck with that - error text was not changing at all.

Am I doing something wrong or this is localytics plugin fault?