谷歌地图 V2 “不幸的是应用程序已停止" [英] google maps V2 “Unfortunately app has Stopped”

查看:36
本文介绍了谷歌地图 V2 “不幸的是应用程序已停止"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始学习 Android.需要 4 天时间来尝试工作地图视图但没有工作.那个错误不幸的是应用程序已停止

I just begin to learn Android .take 4 days to try work maps view but not work .that error Unfortunately the app has stopped

推荐答案

您需要检查以下事项:

1.你在google api console注册的SHA1指纹是否可以.关于如何找到它,你可以找到它此处

2. 生成的api_key必须与menifest一致.

3. api控制台中的应用名称必须与strings.xml中的应用名称一致.

4. meta-data 必须包含在 menifest 中.

There are some things you need to check:

1. Is the SHA1 fingerprint is ok that you have registered in google api console.For how to find it , you can find it here

2. The generated api_key must be same with the menifest.

3. Name of the app in api console must be same with the name of app in strings.xml.

4. meta-data must have to be included in menifest.

<meta-data 
             android:name="com.google.android.gms.version"
             android:value="@integer/google_play_services_version" />


我建议您遵循此link.这太棒了,您只需 1 小时即可完成映射工作.


I recommend you to follow this link.It is awesome and it will take just 1 hour for you to map working.

这篇关于谷歌地图 V2 “不幸的是应用程序已停止"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆