简体   繁体   中英

Add Google Play Services for Google Analytics

I want to use Google Analytics based on below link. I should to add google play services library to dependencies in gralde. I add classpath 'com.google.gms:google-services:3.0.0 but after 22 second, i get a connection timed out: connect error. I have a slow connection and i used proxy. I installed google play services version 46 and Google repository version 23.0.0 from sdk tools. How can i solve my problem? How can i add google play services to my project?

You may follow the steps in this thread . Try to change the proxy settings in Android Studio to manual proxy and enter the company proxy.

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

Note** Check the connection after entering the manual proxy by clicking on Check Connection.

Follow the steps in this documentation on how to set up your project with the Google Play services SDK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM