Search code examples
androidgoogle-apigoogle-maps-api-2

com.google.android.gms. No completion available


Im trying to create my first Google Map app and so i'm following this tutorial: check_Tutorial there you will see the following imports:

import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;

My problem is when i get to this point i can not add these imports because when i type them they don't appear as if they even exist!! so that's why i can not continue with my map and i've tried so many times with other tutorials they always appear in order the maps works...

If you know the reason why i can not add these imports please let me know 'cause is driving me crazy!!

Error adding the library! I forgot to tell you that i receive this image a couple of sec after having added the google play services library: ver imagen


Solution

  • Reason not import(package) google map library in your project
    1)You are not selected Android build Target as google API
    ->Your project right click properties select as google apis
    2)You are not added google play service lib in your project(as Is Library) ->Your project right click properties select as google apis.

    Install in your device-
    https://play.google.com/store/apps/details?id=com.google.android.gms