I am trying to add Google Analytics into an Ionic/ phonegap/ Covdova app using this. However, I am getting these errors:
A problem occurred configuring root project 'android'. Could not resolve all dependencies for configuration ':_debugCompile'. Could not find any version that matches com.google.android.gms:play-service s-analytics:+. Searched in the following locations: https://repo1.maven.org/maven2/com/google/android/gms/play-services-ana lytics/maven-metadata.xml https://repo1.maven.org/maven2/com/google/android/gms/play-services-ana lytics/ Required by: :android:unspecified
I have Android SDK and Google Play service installed. I even try to use the older version it mentioned in the document: cordova plugin add cordova-plugin-google-analytics@0.7.1
but that gives the same error.
I had the same problem and found the answer in this comment.
Running
android
and then installing/updatingfixed the problem for me.
It sounds like several people also had to change the plugin version
but I didn't have to do this.
try removing platform and add it again,
this trick worked for me.