How to add google-play-services.jar project dependency so my project will run and present map

前端 未结 4 2000
自闭症患者
自闭症患者 2020-12-04 19:59

I have following problem: I try to use SupportMapFragment from com.google.android.gms.maps.SupportMapFragment which is part of Google Maps Android

4条回答
  •  死守一世寂寞
    2020-12-04 20:31

    Be Careful, Follow these steps and save your time

    1. Right Click on your Project Explorer.

    2. Select New-> Project -> Android Application Project from Existing Code

    3. Browse upto this path only - "C:\Users**your path**\Local\Android\android-sdk\extras\google\google_play_services"

    4. Be careful brose only upto - google_play_services and not upto google_play_services_lib

    5. And this way you are able to import the google play service lib.

    Let me know if you have any queries regarding the same.

    Thanks

提交回复
热议问题