mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
* feat: Using local.properties to provide API key instead of secure.properties. * Remove redundant declaration in main AndroidManifest.xml * Migrate ApiDemos - Kotlin to use local.properties. * Update README for tutorials. * Genericize. * Remove references to secure.properties. * s/master/main
9 lines
522 B
Markdown
9 lines
522 B
Markdown
# Getting an API Key
|
|
|
|
The demos found in this repository require an API key. To create and use an API key:
|
|
|
|
1. [Get a Maps API key](https://developers.google.com/maps/documentation/android-sdk/get-api-key)
|
|
1. Open the file in the root directory of the sample called `local.properties` (by default, this file is **NOT** under version control)
|
|
1. Add a single line to `local.properties` that looks like `MAPS_API_KEY=YOUR_API_KEY`, where `YOUR_API_KEY` is the API key you obtained in the first step
|
|
1. Build and run
|