为Google Analytics添加Google Play服务

时间:2017-12-31 11:49:51

标签: android google-analytics google-play-services

我想根据以下链接使用Google Analytics。我应该在gralde中添加google play服务库到依赖项。我添加classpath 'com.google.gms:google-services:3.0.0但是在22秒之后,我得到一个连接超时:连接错误。我连接速度慢,我使用代理。我从sdk工具安装了google play services版本46和Google repository版本23.0.0。我怎样才能解决我的问题?如何将Google Play服务添加到我的项目中?

1 个答案:

答案 0 :(得分:0)

您可以按照此thread中的步骤操作。尝试将Android Studio中的代理设置更改为手动代理,然后输入公司代理。

File -> Settings -> Appearance & Behavior -> System Settings -> HTTP Proxy -> check Manual proxy configurations. Enter the proxy -> click apply
  

注意**单击“检查连接”后,在输入手动代理后检查连接。

按照此documentation中的步骤操作,了解如何使用Google Play服务SDK设置项目。