5

I recently checked out some code from Git on Android Studio. The project uses Google Maps but when I check my imports such as import com.google.android.gms.maps.GoogleMap; I get an error when I highlight over google saying 'Cannot resolve symbol 'google''. Might anyone know why? Thanks!

user1871869
  • 3,219
  • 11
  • 52
  • 103

1 Answers1

4

You are suppose to add the google-play-services_lib library in your project. Also Add google-play-services.jar in the "libs" folder of your project.

Right click on your projects ---> properties ---> android --> select target name Google ApIs. And Clean projects and Build the projects.

EDITED:

Check out the Google Map Quick start.

GrIsHu
  • 28,867
  • 10
  • 63
  • 100
  • 1
    Hi, I can't seem to find project > properties.. are u sure you're talking about android studio? – user1871869 Dec 25 '13 at 08:27
  • For android studio go to `File -> Project structure -> Modules` Select your main module, maps in my case, and go to the dependencies tab on the right hand side. Click the `+ and 3. Module dependency`. Select the module your main module depends on and click OK. @user1871869 – GrIsHu Dec 25 '13 at 08:39
  • Hm, okay so how do you add the google-play services library into your project? and where do i find the google-play-services.jar? I know I downloaded it in the SDK manager and I have it installed, and so I tried to place the google-play-services folder into my libs folder in my project but that didn't work – user1871869 Dec 28 '13 at 10:32
  • Checkout @user1871869 I have updated my answer. You can check out the steps to integrate google map v2. – GrIsHu Dec 28 '13 at 17:06
  • Thanks for your patience and help. – user1871869 Dec 28 '13 at 21:23