I had outsourced an application which has google maps in it.The developer gave me apk which works fine and google map is also displayed.But when i run the source code in android studio google map is not visible.In manifest there are two api_keys debug and release.I commented the debug key and generated signed apk ,but still the map is not visible.Is the issue related with signing of app?
Related
I am creating a new Maps Activity using Android Studio and following all steps, with adding an API_KEY, to manifest, enabling Android Maps API in Google console, and restricting it to my package and SHA1. I have searched all internet and tried many things, but the Map is still blank.
Can anyone help?
Blank screen means you have problem about Google Maps API signing.
Probably you have created a new keystore file and used its SHA for enabling maps API.
But while you are developing all your runs are signed with debug.keystore which is default unless you declare one.
You can use your keystore file that created by you for debug runs from signing configs in Project Settings from Android Studio.
Good luck
Emre
I have some issue that I have been searching without solution. I had have an app with Google Maps working well, but I deleted the project on console.developers.google.com by mistake, then the app stops to show the map.
I created another project on the console, I generated other api key with Google Maps for Android enabled. Then I changed my google_maps_api.xml value, I cleaned the project, then re-build and created a signed apk, but when install the app the maps not shows it.
I already tried this:
Change to "None restriction" for the key and wait for 24 hours.
I changed the XML attribute to templateMergeStrategy="replace".
Shutdown and turn on my smartphone.
Uninstall and install again my app.
Nothings works
You just declare your google map API key in the debug mode. There is one more google_map_api.xml file in the release folder. It should be like this, just copy/paste your api key.
P/s: Don't forget to switch your Build Variants to release before build signed apk
I developed an Android app in intel-XDK using Google Maps Android API key. This works fine in dev and testing on devices. I built the app with the same key in code, jarsigned with my keystore, zip aligned, and published at the Playstore. The Map is NOT appearing in the Product. invalidkey or unauthorisedurl . I pasted the cert SHA1 in dev console for api key too. Googling here and elsewhere for a solution I am still unable to bring the Map on product in Playstore. How should I create the correct key for production ? especially in XDK. Anything missing in my build settings ?
In my android app I am using google map and location services.So I generated API key on google developer console for my development work using SHA1 generated by making use of debug.keystore.It worked fine and google map worked perfectly. When I had to release the apk I signed apk following instructions at http://developer.android.com/tools/publishing/app-signing.html#studio.
When I tried to beta test the app, google map didn't work.Visiting the forums told me that I need to generate another google console API key using SHA1 generated by using keysotore which was created while signing the apk.I did same and replaced the key in androidmanifest.xml(So now my project on google console has two API keys,older one I used for development,and newly created one ). But when I regenerated apk and tried to run it on my personal device from android studio, map didn't work.Moreover when I replaced new key by old debug version of key in manifest file and tried to rerun app on my android device map still don't work.So now my older key is also not working while it was working fine before all these changes.
Please help me in this regard.
You should be using the same API Key for your applications but you need to add both the debug and release credentials.
So you will end up with two entries in the android applications:
99:88:77:66:55:44:33:22:11:04:76:99:C3:2A:52:71:7C:64:EC:8B;com.package.app
99:88:77:66:55:44:33:22:11:1C:CC:33:D7:74:A2:49:5D:7D:BF:C6;com.package.app
You can refer to this question for help with the process of adding credentials for each keystore.
In my project google map showing and everything working fine when i run code directly from eclipse or android studio, but map showing white screen when i make a signed apk and install my device.
Have anyone idea what can be the issue ?
When you make a signed APK, you have to generate a new API key for the Google Map and update it in the API console. The API key used with the debug APK will not work.
Check your logcat, it probably shows an Authorization Failure message.
When you generate signed apk, at last step you get a SHA1 key.copy this key and go to google api console,click API and Auth on left side of screen ->Credential ->create new key->Android Key-> paste SHA1 key that you copied from apk generation screen and after SHA1 key place samicolon";" and your app package name.
It will generate new api key,use it in manifest and run your app.it will display your map.