google-mapsgoogle-maps-android-api-2indoor-positioning-systemgoogle-indoor-maps

Android Maps API v2 : The import com.google.android.gms.maps.model.IndoorBuilding cannot be resolved


I tried to make demo application of google indoor maps but i am not able to access some interfaces and some classes.

I added google play services project as a project library in my sample application. you can see in image all other classes and interface i am able to access but not about indoor related. Is there any problem?

Please help me, any help would be appreciated.

Error : "The import com.google.android.gms.maps.model.IndoorLevel cannot be resolved"

Here is the image of error.

enter image description here


Solution

  • The newest Google Play Services should be version 22, you can check in SDK manager. The LocationClient should already been deprecated. So If you have the newest version, LocationClient should not be contained.

    You should use the Google Play Service Project file in this location:

    <YOUR_ANDROID_SDK_LOCATION>/extras/google/google_play_services/libproject/google-play-services_lib/
    

    (The jar file is in:<YOUR_ANDROID_SDK_LOCATION>/extras/google/google_play_services/libproject/google-play-services_lib/libs/)

    I included the newest play service jar file in this Google Drive link.

    You should follow the the steps here: http://developer.android.com/google/play-services/setup.html#Setup to setup your Google Play Services correctly.

    Alternately, you can install the Google Repository from the SDK manager.