When we develop Google Map fragment in Android Studio, it shows only blank map with Google logo. We stuck here, why it is so ? However we have done everything fine.
Before this we also find that we don't have updated Google Play Services as message shown by emulator like -
So, how this can be resolved ?
Let see, how these Google Map related problems can be resolved ?
First See how to update Google Play Services.
Go to -
Tools ----> Android ------> SDK Manager
A dialogue window will appear. Click on SDK Tools tab. Find the Google Play Services. You will see that it is unchecked and status is Not installed.
Check Google Pay Services then click Apply. A confirmation box will appear Click on Ok.
Download will be started if you are connected to the Internet. After download done click on Finish.
Now your Google Play Services is updated. And you can run your map fragment now.
After updating Google Play Services, if you again can not see the map or you only see the blank map with Google logo like screen shot given above then-
We know that for developing map activity in Android Studio, we require Google Map API key generated form google API console. If you using key that is not generated from developer machine, it show blank map. So make sure that you should generate API key from the machine from where you are developing the map activity.
How to generate Google Map API key ?
Before this we also find that we don't have updated Google Play Services as message shown by emulator like -
So, how this can be resolved ?
Let see, how these Google Map related problems can be resolved ?
First See how to update Google Play Services.
Go to -
Tools ----> Android ------> SDK Manager
A dialogue window will appear. Click on SDK Tools tab. Find the Google Play Services. You will see that it is unchecked and status is Not installed.
Check Google Pay Services then click Apply. A confirmation box will appear Click on Ok.
Download will be started if you are connected to the Internet. After download done click on Finish.
Now your Google Play Services is updated. And you can run your map fragment now.
After updating Google Play Services, if you again can not see the map or you only see the blank map with Google logo like screen shot given above then-
We know that for developing map activity in Android Studio, we require Google Map API key generated form google API console. If you using key that is not generated from developer machine, it show blank map. So make sure that you should generate API key from the machine from where you are developing the map activity.
How to generate Google Map API key ?
No comments:
Post a Comment