Android The import com.google cannot be resolved

前端 未结 14 1548
猫巷女王i
猫巷女王i 2020-12-09 04:41

I\'m trying to test LocationService example of Android developer as per following link http://developer.android.com/training/location/retrieve-current.html. At that time, er

14条回答
  •  猫巷女王i
    2020-12-09 05:18

    There is a much simpler solution. In my case, I've gone through all the answers from a few sources and none of them give a straight answer to my problem. Finally, I found a sample app source code and when I import the source code I found out adding the library from Google Play Service Library directory solved it. Google Play Service Library is located (for windows user) here:

        \sdk\extras\google\google_play_services\libproject
    

    Import the library into Eclipse as a library project and add this library in your actual project will fix it.

    EDIT: This guy made a great contribution on his tutorials how to use Android Google Map v2 step by step and very details. It also includes how to use with Android Support package’s backport of fragments.

        http://ddewaele.github.io/GoogleMapsV2WithActionBarSherlock/part1
    

提交回复
热议问题