Google Analytics(分析)与Ionic [英] Google Analytics with Ionic

查看:425
本文介绍了Google Analytics(分析)与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>

解决方案

我有同样的问题,在

运行 android code>,然后安装/更新




  • Android支持存储库

  • / li>
  • Google Play服务

  • Google存放区






这似乎有几个人也不得不更改插件版本。

cordova plugin add cordova-plugin-google-analytics@0.7.1

但我不必这样做。


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/updating

  • Android Support Repository
  • Android Support Library
  • Google Play Services
  • Google Repository

fixed the problem for me.

It sounds like several people also had to change the plugin version

cordova plugin add cordova-plugin-google-analytics@0.7.1

but I didn't have to do this.

这篇关于Google Analytics(分析)与Ionic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆