java - Google Maps key in AndroidManifest.xml from google-services.json -


i have google-services.json file contains api key for, amongst other things, google maps service. google maps requires following information in androidmanifest.xml:

<meta-data   android:name="com.google.android.geo.api_key"   android:value="key_goes_here" /> 

i can access information in java using r.string.google_api_key, build process turns json file resources per https://developers.google.com/android/guides/google-services-plugin, there way refer key inside manifest file?

you can use

<meta-data     android:name="com.google.android.geo.api_key"     android:value="@string/google_api_key"/> 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -