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