Вопрос

I am trying to code a mapview-based app. In accordance with the tutorial, I had to download google play service first. After downloading it I still can not define a variable of type GoogleMap. for an example, private GoogleMap map. The datatype Googlemap is not recognizable by eclipse. Any suggestions for this problem?

Это было полезно?

Решение

You need to include the Google Playservices library to your Project.

Here is the Steps from GoogleDoc How to add the Google Play Services library

  1. Add the Google Play Services project into your Eclipse workspace.

Click File -> Import..., select Android -> Existing Android Code into Workspace Browse to and select /extras/google/google_play_services/libproject/google-play-services_lib

  1. To add the dependency to Google Play Services into your project

Project -> Properties -> Android -> Library, Add -> google-play-services_lib

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top