How to configure android map sdk v2 to use different keys for production and development?

前端 未结 3 1563
情歌与酒
情歌与酒 2020-12-09 10:35

I want to automatically set different android map api V2 keys for development and production.

3条回答
  •  萌比男神i
    2020-12-09 11:06

    I may be wrong, but I think you can use the same V2 API key for both development and production builds. In your Google APIs Console, after generating a simple Android key, you just need to enter the SHA-1 fingerprints of your production signing key, and all the development Android debug signing keys you may have. Then in your manifest, just use that simple Android key and the app should work for both debug and production builds.

提交回复
热议问题