One google maps key for all developers?

We use Google MapView in our application, but on different computers we must use different API keys, otherwise MapView does not display anything.

Is there a way to install one key for all developers?

+8
android google-maps android-mapview api-key
source share
2 answers

Is there a way to install one key for all developers?

For the debug signature key, copy the debug repository (for example, ~/.android/debug.keystore ) between the development computers and remember to update all of them again when the keys expire.

For the product signing key, copy the production key store between the development computers.

Please note that I have not tried copying the keystores between Windows and not Windows (OS X, Linux), so I don’t know if there are any possible problems with line endings.

+18
source share

Yes, you can use a shared key to make MapView visible in all MapView using the Release Key .

  • Get the MD5 Key from your computer and follow the Googles link to get a Map Key and get a Unique key for your system.
  • Copy and paste it into an XML file
  • Now right click on Project-> Export Application-> Select Project-> Next-> Select New Keystore β†’ Complete All Other Steps
  • Record your alias name and password.
  • Now, if you complete the entire filling process, you will receive one .apk file and a keystore file in your saved location.
  • Now open the commamd prompt, enter this command in it β†’ You have the path to bin bin β†’ keytool.exe -list -alias "aliasname" -keystore "location of keystore generated" -storepass "password" -keypass "password"
  • Now press ENTER , you will get MD5 again
  • Now copy it, paste it into the Google Key link and get your key.
  • Now go to XML to add a new key to the XML file.
  • Now right-click Project-> Export Application-> Select your project-> Next-> Use existing Keystore β†’ Set Location and Password-> Next
  • Now your alias name will appear in your Drop Down-> Select it β†’ Enter Password β†’ Next
  • It will ask for the location to save your final .apk file.
  • Choose your location and save.
  • Now this final .apk file will display MapView in all Devices.

      C:\Users\FSSD6>keytool.exe -list -alias aliasname -keystore "location" -storepass password -keypass password 

For more help check out this Maplink and this blog post.

+13
source share

All Articles