Couldn't get connection factory client - fighting with Google Maps

前端 未结 5 1493
青春惊慌失措
青春惊慌失措 2020-11-30 09:39

another day another problem, I finally managed to set up correctly google maps on my android application, or at least I thought I\'ve done it, the whole progam starts, it ev

相关标签:
5条回答
  • 2020-11-30 09:45
    E/MapActivity(394): Couldn't get connection factory client 
    

    This will not be issue in your case. It's just warning message.

    For using Map,things you need to Keep in mind :

    1.Add internet permission in Manifest file

        <uses-permission android:name="android.permission.INTERNET" />
    

    2.Add Library code in Manifest file :

     <uses-library android:name="com.google.android.maps" /> 
    
    1. Extend Map Activity instead of Activity also ensure that your SDK is Google not Android

    2. Then generate Map Key using Release Key and not by using Default Android Debug key Check this post for creating Key using Release Key.

    For further references check this link Mobi Forge

    Output of your code

    0 讨论(0)
  • 2020-11-30 09:45

    In Android Map Program you have to put following permission in Android Manifest file before <application></application>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET" />

    and you should write in tag and before

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

    and Generate proper map api key... After that i face problem . Than I create new Android project with Google Api... I solved the problem...

    0 讨论(0)
  • 2020-11-30 09:47

    dude, how do you get the api key ? if the debug.keystore is located in ur documents and settings, probably you will need to copy keytool.exe so you can execute keytool -list -alias androiddebugkey -keys tore debug.keystore -storepass android -keypass android -v

    this will release a wrong MD5 key. you have to do the following 1- copy your debug.keystore to your program files java bin 2-go to this directory in cmd and execute the keytool command it will give you a different MD5 and this is the right one.

    0 讨论(0)
  • 2020-11-30 09:49

    you need to build signed apk file, try with that in your mobile. I passed same problem

    0 讨论(0)
  • 2020-11-30 09:54

    You need this chk your apikey

    You make you api key and when you change your eclipse you also use your keystorke..

    0 讨论(0)
提交回复
热议问题