I am able to display my Google Map properly in my MapView when I sign my application with my debug keystore. When I try and sign it with a release keystore, the map appears but as blank tiles, no map tiles.
How can I get my release build to show the maps?
Double check your API keys.. if all looks fine and its still not working sign the app with a new key and corresponding new API key :-).
Your maps API key is matched with the keystore used to sign you app. Before signing your app with your release keystore, go over to http://code.google.com/android/maps-api-signup.html and generate a new API key.
Related
I was using Google MAPS API and Oauth2. I wanted to move them to new gmail and firebase project. I deleted old account's firebase and google cloud api projects.
Firebase has been moved successfully with same SHA-1 KEY. But even though I changed package name fully, Google says "fingerprint is already used" and I can't move my sha1 for new gmail's oauth2.
How can I fix this? (I checked almost all posts about this but there is no obvious solution)
I have this app which uses Google Services json file configured with a SHA1 of a debug key, and then build the Signed Build with a new key and used that release.apk to install the app. But the sign in part isn't working now in the release version of the app.
So now my question is, should the Google services json file be configured using the SHA1 of the signed key?? Ignore the formatting since I'm using this from mobile.
Based on the document: Setting Up Google Play Games Services
Specify client ID settings
You should create two client IDs, one with the release certificate fingerprint and another with the debug certificate fingerprint. Make sure to use the same package name for both. This allows Google Play games services to recognize calls from your linked APKs that are signed with either certificate. For more information about certificate signing for Android, see Signing Your Application.
Check this SO post, it talked about the difference of the clientID for debug and release version. Lastly, check the documents : Prepare for Release and Sign Your App for a detailed instruction of preparing your app for release.
I am working on google maps in android . google map is opening by using debug.keystore on my local system but issue is that when i build signed apk then google map not show.however i have also generate SHA1 key from my app keystore then generate new api key but still google map not showing please help as soon as possible
From google docs:
In release mode, you sign your app with your own certificate:
Create a keystore. A keystore is a binary file that contains a set of
private keys. You must keep your keystore in a safe and secure place.
Create a private key. A private key represents the entity to be
identified with the app, such as a person or a company.
So you don't have to generate a new api key. Just generate a new SHA1 for your private key file. After that you have to add it's SHA1 hash into google maps android api section that you have already generated a api key from google developer console.
Because you shouldn't change your manifest file for 2 api keys. Just you have to add SHA1 hashes for both keys. (debug.keystore and your own key file)
Here's a screenshot:
Sorry for bad censor :)
Their is no bug with regard to the maps. I already signed the apk with release keystore ,
the API Keys are registered in my account
It perfectly works in any devices.
What's the problem is when it is uploaded with the client account in google play store
and downloaded in their device, the map displays white.
Question:
1.Does it affect the application if the API keys are registered to my account and the one who upload the app is not my account ?
Answer:
The API key is associated with the apk package and it's keystore and not a user account.
First you need to create a keystore for you app. Refer to http://developer.android.com/tools/publishing/app-signing.html
Next go to https://console.developers.google.com/project and create a project (if don't have one already).
On your project page go to API's & auth > APIs enable Google Maps Android API v2
Next go to API's & auth > Credentials and create a new Key for Android applications. Follow those instructions careful and you it will generate you an API to use on your manifest. (Remember to use the keystore you used to sign your app for play store and not your debug keystore)
More info:
https://developers.google.com/console/help/new/#generatingdevkeys
Good luck
I also face this problem . you need to
signed your application with the system from which you generate SHA-1
fingerprint for Google Api
.
Check Your API Key whether it is the same with the one in Console and in your Manifest.
Hi I'm trying to add an autocompletion to the searchView in my android app - for locations. I created an android key for my app, with my sha1 key, but it still keeps giving me this error. Can somebody help me solve this issue, or give me another api to use? Thanks!
Steps you need to follow are:
1) Go to the google api console
2) If you have already created a project then Go to the services tab and turn on Places API
3) Now go to API access and copy Browser Key not the Android key
4)Building the url to the web service like this:
String url = "https://maps.googleapis.com/maps/api/place/autocomplete/"+output+"?"+parameters;
5) Where parameters are:
String parameters = input+"&"+types+"&"+sensor+"&"+key;
and key is your browser key which you obtain from google console