Open eurosecom opened 7 years ago
api key for debug and release app is the same
to generate map api key https://developers.google.com/maps/documentation/android-api/signup
api_key for DEBUG app c:\ProjektyAndroidstudio\Attendance\app\src\debug\res\values\google_maps_api.xml
api_key for RELEASE signed app c:\ProjektyAndroidstudio\Attendance\app\src\release\res\values\google_maps_api.xml
in app.gradle
android {
.. ..
buildTypes { debug { resValue "string", "google_maps_api_key", "your api key" } release { resValue "string", "google_maps_api_key", "your api key" } }
In AndroidManifest.xml, add the following element as a child of the application element, by inserting it just before the closing application tag: meta-data android:name="com.google.android.geo.API_KEY" android:value="YOUR_API_KEY"
API key is in AndroidStudio in Project res > values > google_maps_api.xml
vypis release SHA kluca zo suboru apkkey.keystore https://stackoverflow.com/questions/14384587/how-to-get-a-google-maps-api-v2-release-key
vypis debug SHA kluca z androidstudia https://stackoverflow.com/questions/27609442/how-to-get-the-sha-1-fingerprint-certificate-in-android-studio-for-debug-mode