Dulakshi Wijesinghe
Dulakshi Wijesinghe

Reputation: 82

Google map API key issue

I am developing an Android app using Google maps, to display current location of the user. I have generated an API key for project package as explained in Google API console. It worked fine and displayed the current location correctly. But when I share my code with a friend, it doesn't work saying "API key is not valid". Once she generate API key in her machine(different API key) it again work fine with that API key only in that machine, not work in mine. Can anybody tell why that happened?? Isn't it generated for project package? Is it combined with MAC address or something?

Upvotes: 0

Views: 375

Answers (1)

Naveen Kumar M
Naveen Kumar M

Reputation: 7557

From https://console.developers.google.com under your project add your friend's SHA-1 certificate fingerprint (or) create one more android key for your friend with friend's SHA-1 certificate fingerprint

enter image description here

Upvotes: 3

Related Questions