Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
W tym dokumencie opisujemy wymagania wstępne dotyczące korzystania z pakietu Maps SDK na Androida, sposób jego włączania, a następnie sposób przesyłania uwierzytelnionego żądania.
checklist
Sprawdź, czy spełniasz wymagania wstępne.
settings
włączyć pakiet SDK w projekcie Google Cloud;
verified_user
Skonfiguruj klucz interfejsu API do używania z pakietem Maps SDK na Androida.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-24 UTC."],[[["An API key is required to use the Maps SDK for Android and can be created through the Google Cloud Console or the Cloud SDK."],["Before using the API key in production, it's crucial to restrict it for security by specifying allowed Android apps and APIs."],["Restricting the API key involves providing the package name and SHA-1 certificate fingerprint of your Android application."],["The same API key can be used for both the Maps SDK for Android and Places SDK for Android applications."],["After obtaining and restricting the API key, proceed to set up and configure your Android Studio project."]]],["To use the Maps SDK, you need an API key, created via the Google Cloud Console or Cloud SDK. The Console method involves navigating to the Credentials page and creating an API key. The Cloud SDK uses the `gcloud services api-keys create` command. Restrict API keys for security, selecting \"Android apps\" and adding the package name and SHA-1 certificate fingerprint. Use separate keys for each app and platform. You can also do this using Cloud SDK, with `gcloud services api-keys update`.\n"]]