Creating an android map in intellij

I am trying to create a simple map in androi (I want to add GPS coordinates later) in intellij 9.0.1, and I installed sdk platform support (and android 1.1 - 2.1 sdk and google api 3-7). I created a new project for Android and I selected android 2.0.

Now I added to my AndroidManifest.xml, like all the tutorials, but when I run this class, it is not found. Does anyone know that I am doing something wrong or where I can find this package>

+6
android intellij-idea
source share
2 answers

I would make sure your Android facet is configured to use the Google APIs. When you configure the Android SDK from IntelliJ, you can select the build target. I suspect that you chose only the build target of Android, and not the build goal of the Goolge API.

Look in the section Project Structure β†’ Facets-> Android. Make sure your Android platform is one of the Google APIs.

+7
source share

Thanks Steve!

Once you do what Steve says, if you don’t see the Google API in the platform list, you will need to add a new platform ..

  • By clicking "Create"
  • Go to: / wherever_you_stored_the_android_folder / add-ons / addon_google_apis_google_inc_X (where X is the number you need)
  • Click OK. You can now select the Google API.
0
source share

All Articles