Android谷歌地图变成v4片段

时间:2014-02-26 16:51:15

标签: java android google-maps android-fragments

我有一个带谷歌地图的片段,它没有问题。 今天我将片段更改为v4片段。 我使用SupportMapFragment将MapFragment更改为xml,并在java中使用googleMap = ((SupportMapFragment) getActivity().getSupportFragmentManager().findFragmentById(R.id.map)).getMap();

更改了代码

在这些更改之后,我使用此logcat进入地图的灰色屏幕:

The Google Play services  resources www not found. Check your project configuration to ensure that the resources are included.

然后:

Authorization failure. Please see http... for how to correctly set up the map. ....

和...

Failded to load map. Error contacting Google servers. This is probably an authentication issue.

在片段更改之前,它没有任何问题。

感谢。

0 个答案:

没有答案