androidgoogle-maps-android-api-2

Android Studio Flamingo is missing Google Maps Activity template


Earlier versions of Android Studio allowed the developer to create a project using the Google Maps Activity template as detailed on Google's Maps SDK for Android Quickstart. However, Android Studio Flamingo does not list a Google Maps Activity template when creating a new phone and tablet project:

enter image description here

So what should a developer do instead to create a Google Maps Activity?


Solution

  • Android Studio Flamingo 2022.2.1 does not provide Google Maps Activity project from the start, however you may start New Google Maps Views Activity after you created new project.

    Steps are:

    1. Start New Empty Project
    2. Right Click on the package where you want to put you Activity
    3. New -> Google -> Google Maps Views Activity

    Do not forget to get your Google Map API key from https://console.cloud.google.com/ before running your project.

    Hope that helps.