Issue
I want to use com.google.android.maps.MapView, but can't figure out how to download the library for this. I have been looking at http://developer.android.com/sdk/adding-components.html. But in my SDK manager I simply can't find the section "third party add-ons" or the "google inc. add-ons (dl-ssl.google.com).
I am using eclipse and have updated the SDK manager, I've also updated everything within the SDK manager. Here's a screenshot of my SDK manager: http://cl.ly/1C1n141T2b351c0T1T3T
I've been googling around this for several hours now, but I seem to only find old links about this topic and none of them solves my issue. I would really appreciate an answer to how I can download the add-on so that I can create a mapview in my Android application.
Solution
You are looking for the Google Maps package in the wrong place -- it's not under add-ons, but instead under each API level branch as part of the Google APIs. Here is what you have to do to get Google Maps in your app.
In the SDK manager, open up the branch corresponding to the API level you want to use [e.g. Android 2.3.3 (API 10)]. Under that branch, there is a 'Google APIs by Google Inc.' entry. Make sure that is checked along with 'SDK Platform' for that branch, and press Install. Wait for the SDK changes to complete.
Switch to your Eclipse project or create a new project, and link against the Google APIs for your desired API level (e.g. Google APIs, Google Inc, 2.3.3, 10).
You will also have to add an entry to the manifest to make sure that the library is referenced in your project. Within the application tag in the manifest, make sure you have
<uses-library android:name="com.google.android.maps" />
Answered By - Theo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.