Not able to use Google Play Services library in Android Studio -


moving android studio, i'm no more able add , use google play servies library.

i create simple project, add library module, sign-in button in layout when run app crashes because of classnotfoundexception...

anyone same problem?

after 2 years created question lot of things has changed concerning android studio , have use google play services library. think can answer myself reporting important steps of official documentation can found here: https://developers.google.com/android/guides/setup

i assume have installed updated version of android studio latest sdk tools.

so here procedure:

1 - add required sdk packages sdk manager:

  • google repository
  • google play services

official documentation can found here: https://developer.android.com/sdk/installing/adding-packages.html

2 - open build.gradle file inside application module directory , add new build rule under dependencies latest version of play-services. example:

apply plugin: 'com.android.application' ...  dependencies {     compile 'com.google.android.gms:play-services:7.5.0' } 

be sure update version number each time google play services updated.

3 - save changes , click sync project gradle files in toolbar.

from version 6.5, can selectively compile google play service apis app. in official documentation can find complete list of individual apis , corresponding build.gradle descriptions.

package summary: https://developers.google.com/android/reference/com/google/android/gms/package-summary

when create new project, android studio provides google play services activity template.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -