Stay organized with collections
Save and categorize content based on your preferences.
Contains utility classes for Google Play services.
Classes
Exceptions
Annotations
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ecom.google.android.gms.common\u003c/code\u003e package provides utility classes for interacting with Google Play services on Android.\u003c/p\u003e\n"],["\u003cp\u003eIt includes classes for account picking, connection management, error handling, and verifying Google Play services availability.\u003c/p\u003e\n"],["\u003cp\u003eThe package also defines exceptions for various Google Play services related errors, such as incorrect manifest values or unavailability.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the \u003ccode\u003eSignInButton\u003c/code\u003e class and its attributes for integrating Google sign-in functionality within their applications.\u003c/p\u003e\n"],["\u003cp\u003eSeveral utility classes, like \u003ccode\u003eGoogleApiAvailability\u003c/code\u003e and \u003ccode\u003eGooglePlayServicesUtil\u003c/code\u003e, aid in ensuring the Google Play services APK is accessible and current.\u003c/p\u003e\n"]]],[],null,["# com.google.android.gms.common\n=============================\n\nKotlin \\|[Java](/android/reference/com/google/android/gms/common/package-summary \"View this page in Java\") \n\nContains utility classes for Google Play services.\n\nClasses\n-------\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AccountPicker](/android/reference/kotlin/com/google/android/gms/common/AccountPicker) | Common account picker similar to the standard framework account picker introduced in ICS: newChooseAccountIntent. |\n| [AccountPicker.AccountChooserOptions](/android/reference/kotlin/com/google/android/gms/common/AccountPicker.AccountChooserOptions) | Options for building an appropriate intent to launch the Account Picker. |\n| [AccountPicker.AccountChooserOptions.Builder](/android/reference/kotlin/com/google/android/gms/common/AccountPicker.AccountChooserOptions.Builder) | The builder for creating an instance of the [AccountChooserOptions](/android/reference/kotlin/com/google/android/gms/common/AccountPicker.AccountChooserOptions). |\n| [ConnectionResult](/android/reference/kotlin/com/google/android/gms/common/ConnectionResult) | Contains all possible error codes for when a client fails to connect to Google Play services. |\n| [ErrorDialogFragment](/android/reference/kotlin/com/google/android/gms/common/ErrorDialogFragment) | Wraps the [Dialog](https://developer.android.com/reference/android/app/Dialog.html) returned by getErrorDialog by using so that it can be properly managed by the . |\n| [GoogleApiAvailability](/android/reference/kotlin/com/google/android/gms/common/GoogleApiAvailability) | Helper class for verifying that the Google Play services APK is available and up-to-date on this device. |\n| [GooglePlayServicesUtil](/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesUtil) | Utility class for verifying that the Google Play services APK is available and up-to-date on this device. |\n| [Scopes](/android/reference/kotlin/com/google/android/gms/common/Scopes) | OAuth 2.0 scopes for use with Google Play services. |\n| [SignInButton](/android/reference/kotlin/com/google/android/gms/common/SignInButton) | The Google sign-in button to authenticate the user. |\n| [SupportErrorDialogFragment](/android/reference/kotlin/com/google/android/gms/common/SupportErrorDialogFragment) | Wraps the [Dialog](https://developer.android.com/reference/android/app/Dialog.html) returned by getErrorDialog by using so that it can be properly managed by the . |\n\nExceptions\n----------\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GooglePlayServicesIncorrectManifestValueException](/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesIncorrectManifestValueException) | Exception encountered when the Google Play services version in the client app's manifest was incorrect. |\n| [GooglePlayServicesManifestException](/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesManifestException) | Exception encountered while checking if the package's manifest is consistent with the Google Play services client libraries. |\n| [GooglePlayServicesMissingManifestValueException](/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesMissingManifestValueException) | Exception encountered when the Google Play services version was not present in the client app's manifest. |\n| [GooglePlayServicesNotAvailableException](/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesNotAvailableException) | Indicates Google Play services is not available. |\n| [GooglePlayServicesRepairableException](/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesRepairableException) | `GooglePlayServicesRepairableException`s are special instances of s which are thrown when Google Play services is not installed, up-to-date, or enabled. |\n| [UserRecoverableException](/android/reference/kotlin/com/google/android/gms/common/UserRecoverableException) | UserRecoverableExceptions signal errors that can be recovered with user action, such as a user login. |\n\nAnnotations\n-----------\n\n|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [SignInButton.ButtonSize](/android/reference/kotlin/com/google/android/gms/common/SignInButton.ButtonSize) | Size constants - enumeration of supported sizes. |\n| [SignInButton.ColorScheme](/android/reference/kotlin/com/google/android/gms/common/SignInButton.ColorScheme) | Color constants - enumeration of supported color schemes. |"]]