Stay organized with collections
Save and categorize content based on your preferences.
Contains utility classes for Google Play services.
Annotations
Classes
Exceptions
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\u003e\u003ccode\u003ecom.google.android.gms.common\u003c/code\u003e provides utility classes for interacting with Google Play services on Android.\u003c/p\u003e\n"],["\u003cp\u003eIt includes classes for account picking, connection management, and verifying Google Play services availability.\u003c/p\u003e\n"],["\u003cp\u003eIt offers UI elements like the \u003ccode\u003eSignInButton\u003c/code\u003e for user authentication.\u003c/p\u003e\n"],["\u003cp\u003eVarious exceptions are defined to handle potential errors related to Google Play services.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this package to ensure their apps integrate seamlessly with Google Play services.\u003c/p\u003e\n"]]],[],null,["# com.google.android.gms.common\n=============================\n\n[Kotlin](/android/reference/kotlin/com/google/android/gms/common/package-summary \"View this page in Kotlin\") \\|Java \n\nContains utility classes for Google Play services.\n\nAnnotations\n-----------\n\n|-------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [SignInButton.ButtonSize](/android/reference/com/google/android/gms/common/SignInButton.ButtonSize) | Size constants - enumeration of supported sizes. |\n| [SignInButton.ColorScheme](/android/reference/com/google/android/gms/common/SignInButton.ColorScheme) | Color constants - enumeration of supported color schemes. |\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AccountPicker](/android/reference/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/com/google/android/gms/common/AccountPicker.AccountChooserOptions) | Options for building an appropriate intent to launch the Account Picker. |\n| [AccountPicker.AccountChooserOptions.Builder](/android/reference/com/google/android/gms/common/AccountPicker.AccountChooserOptions.Builder) | The builder for creating an instance of the [AccountChooserOptions](/android/reference/com/google/android/gms/common/AccountPicker.AccountChooserOptions). |\n| [ConnectionResult](/android/reference/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/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/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/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/com/google/android/gms/common/Scopes) | OAuth 2.0 scopes for use with Google Play services. |\n| [SignInButton](/android/reference/com/google/android/gms/common/SignInButton) | The Google sign-in button to authenticate the user. |\n| [SupportErrorDialogFragment](/android/reference/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/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/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/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/com/google/android/gms/common/GooglePlayServicesNotAvailableException) | Indicates Google Play services is not available. |\n| [GooglePlayServicesRepairableException](/android/reference/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/com/google/android/gms/common/UserRecoverableException) | UserRecoverableExceptions signal errors that can be recovered with user action, such as a user login. |"]]