Google Analytics(分析)与Ionic [英] Google Analytics with Ionic
问题描述
我想使用这。但是,我收到这些错误:
配置根项目android时出现问题。
无法解析配置':_debugCompile'的所有依赖项。
找不到与com.google.android.gms匹配的任何版本:play-service
s-analytics:+。
在以下位置搜索:
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 /
要求者:
:android:unspecified
我安装了Android SDK和Google Play服务。我甚至尝试使用文档中提到的旧版本: cordova插件add cordova-plugin-google-analytics@0.7.1
但是给出相同的错误。 p>
我有同样的问题,在 运行 这似乎有几个人也不得不更改插件版本。 但我不必这样做。 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: I had the same problem and found the answer in this comment. Running fixed the problem for me. It sounds like several people also had to change the plugin version but I didn't have to do this. 这篇关于Google Analytics(分析)与Ionic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
android code>,然后安装/更新
cordova plugin add cordova-plugin-google-analytics@0.7.1
cordova plugin add cordova-plugin-google-analytics@0.7.1
but that gives the same error.android
and then installing/updating
cordova plugin add cordova-plugin-google-analytics@0.7.1