MapActivity “couldn't get connection factory client”

為{幸葍}努か 提交于 2019-12-13 01:26:03

问题


I'm programming a Google Maps based Android application. The application itself runs fine, without any issues. I can see the map, zoom to my current location etc. etc. All permissions should be fine according to the AndroidManifest.xml. I also have an API key for the map which is working. When the map is loaded I get the above mentioned error. I've searched the Internet and it seems to be an API bug. I would really like to get this confirmed by someone who maybe has had the same problem. If it is possible to fix the issue, it would be preferred of course.

I hope that someone can confirm that this is just an API bug or maybe has some fix to the problem.


回答1:


I don't know if it is an API error or not. But I can tell you one thing, I have 3 real Apps based on Maps and I see this error all the time, it never hurts if that what you need to know. Good luck




回答2:


I am going to confirm. I get this error as well with functioning apps, in my MapActivity, and it doesn't seem to do any harm. That said, I have not been able to track down the source leading me to believe it is in fact an API bug.




回答3:


In my case, it has same issue, when I put some code to get location provider with fine accuracy. Emulator did Samsung Galaxy 2 as well.

    Crieteria mCriteria;

    if (mCriteria==null){
        mCriteria = new Criteria();
        mCriteria.setAccuracy(Criteria.ACCURACY_FINE);
    }

    return mManager.getBestProvider(mCriteria, true);

So, I removed the code and it did work fine again. I hope this would be helpful.



来源:https://stackoverflow.com/questions/9989518/mapactivity-couldnt-get-connection-factory-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!