문제

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