How to inject a Maps Android v2 API Key into an application?

痞子三分冷 提交于 2019-12-25 10:54:10

问题


It seems that is not possible to set an API v2 key programatically, so is there any other method to set this value after build.


回答1:


i think its not possible because, During the build process, your Android projects are compiled and packaged into an .apk file, so you can't change it after build !

official documentation: http://developer.android.com/tools/building/index.html



来源:https://stackoverflow.com/questions/17594737/how-to-inject-a-maps-android-v2-api-key-into-an-application

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