Das Google Maps Platform-Team aktualisiert die SDKs regelmäßig, um neue Funktionen einzuführen, Fehler zu korrigieren und die Leistung zu verbessern. Auf dieser Seite wird beschrieben, wie Sie die Abhängigkeiten von mobilen SDKs verwalten.
Welche Version soll verknüpft werden?
Erstellen Sie bei geschäftskritischen Apps eine Verknüpfung zur aktuellen Zwischenversion der verwendeten Hauptversion (X.*). Aktualisieren Sie die Verknüpfung außerdem jährlich auf die neue Hauptversion.
Wenn Sie neue Versionen Ihrer Anwendung veröffentlichen
im Laufe des Jahres können Sie neuere Zwischenversionen des Places SDK for Android verwenden. Hierfür müssen Sie Ihre App nicht aktualisieren, da neue Zwischenversionen abwärtskompatibel sind.
Vorteile:
Falls im Places SDK for Android Probleme auftreten, erhalten Sie gemäß der Richtlinie zur Unterstützung mobiler Betriebssystemversionen für 12 Monate nach der ursprünglichen Veröffentlichung der Hauptversion Korrekturen, die abwärtskompatibel sind. Sie profitieren daher auch von Korrekturen, ohne schnell ein Upgrade auf eine inkompatible SDK-Version durchzuführen.
Wenn Ihre App bereits auf der neuesten Version basiert, lassen sich die neuesten Verbesserungen und Funktionen ganz einfach implementieren.
Jährliche inkrementelle Updates auf die neueste Hauptversion des SDK verursachen unter Umständen weniger Aufwand beim Anpassen, Umschreiben und Testen Ihrer Anwendung als abwärtsinkompatible Änderungen, die über mehrere Hauptversionen hinweg vorgenommen werden.
Bei nicht kritischen Apps reicht eine Verknüpfung zu einer beliebigen korrigierten Version aus. Wenn Sie eine Benachrichtigung über die Einstellung dieser Version erhalten, haben Sie 12 Monate Zeit, Nutzern den aktualisierten App-Code zur Verfügung zu stellen.
Vorteile:
Es sind seltener Wartungsarbeiten erforderlich.
Neue Versionen Ihrer App unterstützen Geräte mit älteren mobilen Betriebssystemen länger (bis Sie ein Upgrade auf eine neue SDK-Version ausführen).
Project Owner mit erreichbaren E-Mail-Adressen erhalten proaktive Benachrichtigungen über Änderungen, die sich auf ihre Projekte auswirken. Weitere Informationen zu wichtigen Updates, zu Einstellungen und zu anderen Änderungen finden Sie hier.
Installation
Geben Sie in der Datei build.gradle.kts oder build.gradle auf App-Ebene immer eine Version statt eines Präfixbereichs (+) oder latest an. Sonst kann es zu unvorhersehbaren und nicht reproduzierbaren Builds kommen. Das Places SDK for Android erfüllt die
semantische Versionsverwaltung und neue
Releases von Hauptversionen können funktionsgefährdende Änderungen enthalten. Das Mindest-API-Level, das unterstützt wird, ist Level 23.
dependencies{// Places and Maps SDKsimplementation("com.google.android.libraries.places:places:4.3.1")}
Wartung und Upgrade
Android Studio prüft automatisch auf neuere Versionen und gibt einen Warnhinweis aus, wenn eine neuere Version einer Abhängigkeit verfügbar ist. Es empfiehlt sich, immer so schnell wie möglich auf die neueste verfügbare Version zu aktualisieren, um die technischen Schulden so gering wie möglich zu halten. Wenn Sie ein Update auf eine neue Hauptversion durchführen, lesen Sie in den Versionshinweisen nach, welche Änderungen nicht abwärtskompatibel sind und wie Sie Ihren Code aktualisieren können.
Zusätzlich zur Abfrage neuerer Versionen erhalten Google Cloud-Project Owner E-Mails zu abwärtsinkompatiblen Änderungen, die sich auf ihre Projekte auswirken können. Um proaktive Benachrichtigungen über solche Änderungen zu erhalten, müssen Sie für jedes Ihrer Projekte die Rolle „Inhaber“ mit einer regelmäßig kontrollierten E-Mail-Adresse zuweisen.
Wenn Sie ein Upgrade von Version 3.2.0 oder niedriger des Places SDK for Android ausführen
Für die Umstellung auf das neue SDK ist keine Migration erforderlich. Dazu musst du nur Folgendes tun:
Aktivieren Sie die Places API (neu) für den in Ihrer App verwendeten API-Schlüssel. Weitere Informationen finden Sie unter API-Schlüssel verwenden.
Im Abschnitt dependencies der Modulebene
build.gradle-Datei, aktualisieren Sie die places-Abhängigkeit.
und fügen Sie die Abhängigkeit kotlin-bom hinzu:
[null,null,["Zuletzt aktualisiert: 2025-08-30 (UTC)."],[[["\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."]]