[null,null,["最后更新时间 (UTC):2025-08-30。"],[[["\u003cp\u003eThe Places SDK for Android is regularly updated with new features and improvements, and developers should manage their dependencies accordingly by linking to the latest dot release or a fixed version depending on the application's criticality.\u003c/p\u003e\n"],["\u003cp\u003eFor critical applications, it's recommended to link to the latest dot release and upgrade to the new major version annually to ensure receiving timely bug fixes and adopting new features easily.\u003c/p\u003e\n"],["\u003cp\u003eNon-critical applications can link to any fixed version but need to update within 12 months of receiving a deprecation notice.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should specify a fixed version number instead of using prefixes like '+' or 'latest' when defining dependencies in the build configuration to ensure build consistency.\u003c/p\u003e\n"],["\u003cp\u003eWhen upgrading from older SDK versions to version 3.3.0 or later, enable the new Places API on your API key, update dependencies to the latest version, and initialize the Places client using the \u003ccode\u003ePlaces.initializeWithNewPlacesApiEnabled()\u003c/code\u003e method to utilize the latest SDK features.\u003c/p\u003e\n"]]],[],null,["# Places SDK for Android versions\n\nSelect platform: [Android](/maps/documentation/places/android-sdk/versions \"View this page for the Android platform docs.\") [iOS](/maps/documentation/places/ios-sdk/versions \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/versions \"View this page for the JavaScript platform docs.\")\n\n\u003cbr /\u003e\n\n| **Note:** The Places SDK for Android features that are available in your app are determined by a combination of the SDK version number that you specify in your app configuration, the APIs enabled on your API key, and how you initialize your app. For more information, see [Choose your SDK\n| version](/maps/documentation/places/android-sdk/choose-sdk).\n\nThe Google Maps Platform team regularly updates SDKs with new features, bug fixes, and\nperformance improvements. This page provides guidance on how to manage your dependencies\non mobile SDKs.\n\nWhich version to link to?\n-------------------------\n\n- **For mission-critical apps**, link to the latest dot release of the major\n version that you are using (X.\\*), and upgrade yearly to the new major version.\n\n As you release new versions of your application\n throughout the year, you may start using newer dot versions of the Places SDK for Android. This will\n not require updates in your application as new dot versions are backward compatible.\n\n **Benefits:**\n - If you discover issues in the Places SDK for Android, fixes will be provided in a backward-compatible way for 12 months after the initial release of the major version, per the [Mobile support\n policy](https://developers.google.com/maps/software-support#sdk-support). You will not need to urgently upgrade to an *incompatible* SDK version to benefit from fixes.\n - The latest improvements and features are easy to adopt when your app is already built on the latest version.\n - Annual incremental updates to the newest major version of the SDK may require less work to adapt, rewrite, and test your application, than having to handle backwards-incompatible changes introduced across multiple major version releases.\n\n \u003cbr /\u003e\n\n- **For non-critical apps**, link to any fixed version. When you receive a deprecation\n notice for that fixed version, you will have 12 months to make your updated app code available to\n your users.\n\n **Benefits:**\n - Less frequent maintenance work.\n - New versions of your app keep supporting users' devices running older mobile operating systems for longer (until you need to upgrade to a new SDK version).\n\n \u003cbr /\u003e\n\nProject Owners with monitored email addresses receive proactive notifications about changes that\nimpact each of their projects. [Stay\ninformed](https://developers.google.com/maps/support#staying_informed) about major updates, deprecations, and other changes.\n\nInstallation\n------------\n\nIn your app-level `build.gradle.kts` or `build.gradle` file, always specify\na version instead of a prefix range (`+`) or `latest` since these can lead\nto unpredictable and unrepeatable builds. The Places SDK for Android adheres to\n[semantic versioning](https://semver.org), and new\nmajor version releases may include breaking changes. **The minimum API level supported is\n23**. \n\n```carbon\ndependencies {\n\n // Places and Maps SDKs\n implementation(\"com.google.android.libraries.places:places:4.3.1\")\n}\n```\n\nMaintenance and upgrade\n-----------------------\n\nAndroid Studio automatically checks for newer available versions and provides a warning when a\nnewer version of a dependency is available. To minimize technical debt, update to the newest\navailable version as soon as possible. If you are updating to a new major version,\n[check the release notes](/maps/documentation/places/android-sdk/releases)\n\nfor backwards-incompatible changes and how to update your code.\n| **Note:**The minimum API level required by Maps SDK for Android version 19.0.x is Android API Level 21 (\"Lollipop\"; Android 5.0) or higher.\n\nIn addition to polling for newer versions, Google Cloud\n[project\nowners](https://cloud.google.com/iam/docs/understanding-roles#basic-definitions) receive emails about backwards incompatible changes that may\naffect their projects. To get proactive notification about backwards incompatible\nchanges, [assign\nthe owner role](https://cloud.google.com/iam/docs/granting-changing-revoking-access) with a monitored email address for each of your projects.\n\n### If you are upgrading from Places SDK for Android version 3.2.0 or earlier\n\nThere is no migration necessary when moving to the new SDK. You only have to:\n\n1. Enable **Places API (New)** on the API key used in your app. For more information, see [Using API Keys](/maps/documentation/places/android-sdk/get-api-key).\n2. In the `dependencies` section of your module-level\n `build.gradle` file, update the `places` dependency\n and add the `kotlin-bom` dependency:\n\n ```carbon\n dependencies {\n implementation(platform(\"org.jetbrains.kotlin:kotlin-bom:1.8.0\"))\n implementation 'com.google.android.libraries.places:places:3.5.0'\n }\n ```\n\n For more information on the `kotlin-bom` dependency, see\n [Usage of the latest kotlin-stdlib version in transitive dependencies](https://kotlinlang.org/docs/whatsnew18.html#usage-of-the-latest-kotlin-stdlib-version-in-transitive-dependencies).\n3. Update your existing app to call the new [`Places.initializeWithNewPlacesApiEnabled()`](/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/Places#initializeWithNewPlacesApiEnabled(android.content.Context,%20java.lang.String)) method to initialize your app. For more information, see [Initialize the Places API client](/maps/documentation/places/android-sdk/config#connect-client).\n\nYour existing apps continue to work unchanged, but you can now take\nadvantage of all new SDK features."]]