google maps V2 “Unfortunately app has Stopped”

我只是一个虾纸丫 提交于 2019-12-01 14:46:58
Setu Kumar Basak

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" />


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

For google map to work add below lines to your manifest -

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

and import google play service library to your workspace.

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