我对GoogleMaps有这个奇怪的问题。在发布模式下,SupportMap中的“Google Play服务正在更新”消息
当我处于调试模式时,一切正常,但是当我处于发布模式时,onmapReady回调从不会被调用,并且地图显示“Google Play服务正在更新”消息。
另一个奇怪的是,如果我在应用程序开始时运行一个活动,它可以工作,即使在其他活动中。
这是我在片段
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
FrameLayout fr = (FrameLayout) inflater.inflate(R.layout.my_fragment, null);
//views code
SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
return fr;
}
你弄清楚这是为什么hapenning?我面临着完全相同的问题。谢谢。 – MLN
不幸我不知道。只有当我在第一个活动(启动器活动)中加载虚假地图时,它才能在发布模式下运行。也许有一些错误与其他玩服务的东西有关 – Bronx
现在面临同样的问题!有关这方面的消息吗? – Chris