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

前端 未结 4 1997
自闭症患者
自闭症患者 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:35

    Some of the solutions described here did not work for me. Others did, however they produced warnings on runtime and javadoc was still not linked. After some experimenting, I managed to solve this. The steps are:

    1. Install the Google Play Services as recommended on Android Developers.

    2. Set up your project as recommended on Android Developers.

    3. If you followed 1. and 2., you should see two projects in your workspace: your project and google-play-services_lib project. Copy the docs folder which contains the javadoc from /extras/google/google_play_services/ to libs folder of your project.

    4. Copy google-play-services.jar from /extras/google/google_play_services/libproject/google-play-services_lib/libs to 'libs' folder of your project.

    5. In google-play-services_lib project, edit libs/google-play-services.jar.properties . The in doc= should point to the subfolder reference of the folder docs, which you created in step 3.

    6. In Eclipse, do Project > Clean. Done, javadoc is now linked.

提交回复
热议问题