I'm developing an Android App to incorporate the google maps api in a separate activity. But when I read tutorials it states the build target must be set to google api at project creation. My question is it possible to add the map to an existing project?
Adding Google maps api v2 to an existing project
12.7k Views Asked by Brian Var AtThere are 4 best solutions below

You just have to change the Build Target of your project.
Under Eclipse, go to Window > Preferences > Android In the Project Build Target list, select one which provides Google APIs.
Note: this is only valid if targeting Google Maps API for Android v1. Google Maps API for Android v2 is provided by a library project

Open your Project properties > Android> See Option Library> Click ADD> google-play-services_lib option is there (Only if google play services is used already with all steps correctly done in some another project)

I know this is an old question but I ran into this when I was trying to figure out how to add Google Maps to an existing Android Studio Project when my previous experience was adding the Google Maps API from the initial app creation.
In Android Studio, you can go with:
File --> New --> Google --> Google Maps Activity
Or right click your folder with all the Activities, and the above will still hold.
Let Android Studio sync and you'll be shown a generated xml file about your google map key. Copy paste the URL (it's the one that isn't indented) and then follow the instructions. You'll get a key after. Once you get your key, copy paste it to the "YOUR_KEY_HERE" string constant in the generated xml file and you're good to go.
The device must have Google play services installed for
Google Maps Android v2
to run:You will find these docs useful!
If your application is running v1, it's probably best to run a check to see if
Google Play services
is installed, and if not use the old map. I've not tested it, but check the answer here for running that check. I've also found, from here you can do this:And use the following types to determine if Google Play Services is installed on the device:
To add the map using a fragment you will need to do something like this:
For Google Maps Android v2 and fragments, as mentioned above, this is a great resource! Oh, and remember to use the
Google Play services SDK
!