Skip to content Skip to sidebar Skip to footer

Android Maps V2 Couldn't Get Connection Factory Client

I have a problem. I am getting a blank google map. I tried everything around the net. But nothing seems to solve this issue. I have pasted the logcat below. I have tried both debug

Solution 1:

In your XML file you are using pld Google Map API v1.. And in your Manifest file you have wrote code for Google Map V2.. SO just add this in xml replace with old.

<fragment xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/map"android:layout_width="match_parent"android:layout_height="match_parent"class="com.google.android.gms.maps.SupportMapFragment"/>

and yes also remove

<uses-libraryandroid:name="com.google.android.maps" />

from manifest file....

you can refer this also:

Still Gets "Couldn't get connection factory client" Error

android google map Couldn't get connection factory client

Solution 2:

Google map v1 is deprecated check this for Google map v2. Good tutorial

try using SupportMapFragmentin your XML

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/map"
    android:layout_width="match_parent"
    android:layout_height="match_parent"class="com.google.android.gms.maps.SupportMapFragment"/>

map samples link

Solution 3:

Add this permission in your manifest

<permission
android:name="your.application.package.permission.MAPS_RECEIVE"android:protectionLevel="signature" />

remove this one

<uses-libraryandroid:name="com.google.android.maps" />

and check whether you have google play services or not.

Post a Comment for "Android Maps V2 Couldn't Get Connection Factory Client"