Android google maps release key?
Before you downvote or mark this as a duplicate, please consider that all the answers for this question on SO date back to 2013/14 and this page is completely silent on the issue.
With that said, how do I get a release key for Google Maps? I used my current key with a debug.apk and a signed-release.apk, and the maps dont render on the release.apk, so I assume its a API key issue.
add a comment |
Before you downvote or mark this as a duplicate, please consider that all the answers for this question on SO date back to 2013/14 and this page is completely silent on the issue.
With that said, how do I get a release key for Google Maps? I used my current key with a debug.apk and a signed-release.apk, and the maps dont render on the release.apk, so I assume its a API key issue.
add a comment |
Before you downvote or mark this as a duplicate, please consider that all the answers for this question on SO date back to 2013/14 and this page is completely silent on the issue.
With that said, how do I get a release key for Google Maps? I used my current key with a debug.apk and a signed-release.apk, and the maps dont render on the release.apk, so I assume its a API key issue.
Before you downvote or mark this as a duplicate, please consider that all the answers for this question on SO date back to 2013/14 and this page is completely silent on the issue.
With that said, how do I get a release key for Google Maps? I used my current key with a debug.apk and a signed-release.apk, and the maps dont render on the release.apk, so I assume its a API key issue.
asked Jan 19 '17 at 13:42
BiGGZBiGGZ
352214
352214
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
The same way you get a "debug" key. There is no real difference, just as there is no real difference between a debug and a release certificate in Android (except that the debug certificate gets created automatically for you and resides in your Android settings folder).
Get the SHA-1 fingerprint for your Android release key and use it along with the proper package name (debug builds usually have a ".debug" attached, so make sure to omit that) to create a new Google Maps Key in the Google Developer Console.
Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup
– minhazur
Apr 11 '18 at 18:05
add a comment |
- You have to enable Google Maps API here:
https://console.developers.google.com/apis/dashboard
- You have to create key here:
https://console.developers.google.com/apis/credentials/oauthclient?
- Put your key into
AndroidManifest.xmlfile.
That's it!
More detailed:
https://developers.google.com/maps/documentation/android-api/config?hl=en
I've done all that sir. It works when im debugging, but when i make a release build, i just get a blank screen with the google logo at the bottom
– BiGGZ
Jan 19 '17 at 13:51
@BiGGZ , you have to add your release and debug keys into console. get SHA-1 like here stackoverflow.com/a/15727931/1979882 and put resultant key into console
– Vyacheslav
Jan 19 '17 at 13:54
I see. My SHA1 was different for debug and release. I made te changes now. Will let you know how it goes
– BiGGZ
Jan 19 '17 at 14:28
What goes? Two key have different sha1?or what?
– Vyacheslav
Jan 19 '17 at 14:31
Yes. My debug key had a different SHA1 than my release key. So now im making an API key using the release SHA1 and il let you know if that works
– BiGGZ
Jan 19 '17 at 14:41
|
show 2 more comments
Just add string not from resources(@string/google_maps_key), but hardcode.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIza..." />
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f41743234%2fandroid-google-maps-release-key%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
The same way you get a "debug" key. There is no real difference, just as there is no real difference between a debug and a release certificate in Android (except that the debug certificate gets created automatically for you and resides in your Android settings folder).
Get the SHA-1 fingerprint for your Android release key and use it along with the proper package name (debug builds usually have a ".debug" attached, so make sure to omit that) to create a new Google Maps Key in the Google Developer Console.
Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup
– minhazur
Apr 11 '18 at 18:05
add a comment |
The same way you get a "debug" key. There is no real difference, just as there is no real difference between a debug and a release certificate in Android (except that the debug certificate gets created automatically for you and resides in your Android settings folder).
Get the SHA-1 fingerprint for your Android release key and use it along with the proper package name (debug builds usually have a ".debug" attached, so make sure to omit that) to create a new Google Maps Key in the Google Developer Console.
Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup
– minhazur
Apr 11 '18 at 18:05
add a comment |
The same way you get a "debug" key. There is no real difference, just as there is no real difference between a debug and a release certificate in Android (except that the debug certificate gets created automatically for you and resides in your Android settings folder).
Get the SHA-1 fingerprint for your Android release key and use it along with the proper package name (debug builds usually have a ".debug" attached, so make sure to omit that) to create a new Google Maps Key in the Google Developer Console.
The same way you get a "debug" key. There is no real difference, just as there is no real difference between a debug and a release certificate in Android (except that the debug certificate gets created automatically for you and resides in your Android settings folder).
Get the SHA-1 fingerprint for your Android release key and use it along with the proper package name (debug builds usually have a ".debug" attached, so make sure to omit that) to create a new Google Maps Key in the Google Developer Console.
answered Jan 19 '17 at 13:51
Timo OhrTimo Ohr
7,79722620
7,79722620
Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup
– minhazur
Apr 11 '18 at 18:05
add a comment |
Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup
– minhazur
Apr 11 '18 at 18:05
Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup
– minhazur
Apr 11 '18 at 18:05
Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup
– minhazur
Apr 11 '18 at 18:05
add a comment |
- You have to enable Google Maps API here:
https://console.developers.google.com/apis/dashboard
- You have to create key here:
https://console.developers.google.com/apis/credentials/oauthclient?
- Put your key into
AndroidManifest.xmlfile.
That's it!
More detailed:
https://developers.google.com/maps/documentation/android-api/config?hl=en
I've done all that sir. It works when im debugging, but when i make a release build, i just get a blank screen with the google logo at the bottom
– BiGGZ
Jan 19 '17 at 13:51
@BiGGZ , you have to add your release and debug keys into console. get SHA-1 like here stackoverflow.com/a/15727931/1979882 and put resultant key into console
– Vyacheslav
Jan 19 '17 at 13:54
I see. My SHA1 was different for debug and release. I made te changes now. Will let you know how it goes
– BiGGZ
Jan 19 '17 at 14:28
What goes? Two key have different sha1?or what?
– Vyacheslav
Jan 19 '17 at 14:31
Yes. My debug key had a different SHA1 than my release key. So now im making an API key using the release SHA1 and il let you know if that works
– BiGGZ
Jan 19 '17 at 14:41
|
show 2 more comments
- You have to enable Google Maps API here:
https://console.developers.google.com/apis/dashboard
- You have to create key here:
https://console.developers.google.com/apis/credentials/oauthclient?
- Put your key into
AndroidManifest.xmlfile.
That's it!
More detailed:
https://developers.google.com/maps/documentation/android-api/config?hl=en
I've done all that sir. It works when im debugging, but when i make a release build, i just get a blank screen with the google logo at the bottom
– BiGGZ
Jan 19 '17 at 13:51
@BiGGZ , you have to add your release and debug keys into console. get SHA-1 like here stackoverflow.com/a/15727931/1979882 and put resultant key into console
– Vyacheslav
Jan 19 '17 at 13:54
I see. My SHA1 was different for debug and release. I made te changes now. Will let you know how it goes
– BiGGZ
Jan 19 '17 at 14:28
What goes? Two key have different sha1?or what?
– Vyacheslav
Jan 19 '17 at 14:31
Yes. My debug key had a different SHA1 than my release key. So now im making an API key using the release SHA1 and il let you know if that works
– BiGGZ
Jan 19 '17 at 14:41
|
show 2 more comments
- You have to enable Google Maps API here:
https://console.developers.google.com/apis/dashboard
- You have to create key here:
https://console.developers.google.com/apis/credentials/oauthclient?
- Put your key into
AndroidManifest.xmlfile.
That's it!
More detailed:
https://developers.google.com/maps/documentation/android-api/config?hl=en
- You have to enable Google Maps API here:
https://console.developers.google.com/apis/dashboard
- You have to create key here:
https://console.developers.google.com/apis/credentials/oauthclient?
- Put your key into
AndroidManifest.xmlfile.
That's it!
More detailed:
https://developers.google.com/maps/documentation/android-api/config?hl=en
answered Jan 19 '17 at 13:48
VyacheslavVyacheslav
14k962121
14k962121
I've done all that sir. It works when im debugging, but when i make a release build, i just get a blank screen with the google logo at the bottom
– BiGGZ
Jan 19 '17 at 13:51
@BiGGZ , you have to add your release and debug keys into console. get SHA-1 like here stackoverflow.com/a/15727931/1979882 and put resultant key into console
– Vyacheslav
Jan 19 '17 at 13:54
I see. My SHA1 was different for debug and release. I made te changes now. Will let you know how it goes
– BiGGZ
Jan 19 '17 at 14:28
What goes? Two key have different sha1?or what?
– Vyacheslav
Jan 19 '17 at 14:31
Yes. My debug key had a different SHA1 than my release key. So now im making an API key using the release SHA1 and il let you know if that works
– BiGGZ
Jan 19 '17 at 14:41
|
show 2 more comments
I've done all that sir. It works when im debugging, but when i make a release build, i just get a blank screen with the google logo at the bottom
– BiGGZ
Jan 19 '17 at 13:51
@BiGGZ , you have to add your release and debug keys into console. get SHA-1 like here stackoverflow.com/a/15727931/1979882 and put resultant key into console
– Vyacheslav
Jan 19 '17 at 13:54
I see. My SHA1 was different for debug and release. I made te changes now. Will let you know how it goes
– BiGGZ
Jan 19 '17 at 14:28
What goes? Two key have different sha1?or what?
– Vyacheslav
Jan 19 '17 at 14:31
Yes. My debug key had a different SHA1 than my release key. So now im making an API key using the release SHA1 and il let you know if that works
– BiGGZ
Jan 19 '17 at 14:41
I've done all that sir. It works when im debugging, but when i make a release build, i just get a blank screen with the google logo at the bottom
– BiGGZ
Jan 19 '17 at 13:51
I've done all that sir. It works when im debugging, but when i make a release build, i just get a blank screen with the google logo at the bottom
– BiGGZ
Jan 19 '17 at 13:51
@BiGGZ , you have to add your release and debug keys into console. get SHA-1 like here stackoverflow.com/a/15727931/1979882 and put resultant key into console
– Vyacheslav
Jan 19 '17 at 13:54
@BiGGZ , you have to add your release and debug keys into console. get SHA-1 like here stackoverflow.com/a/15727931/1979882 and put resultant key into console
– Vyacheslav
Jan 19 '17 at 13:54
I see. My SHA1 was different for debug and release. I made te changes now. Will let you know how it goes
– BiGGZ
Jan 19 '17 at 14:28
I see. My SHA1 was different for debug and release. I made te changes now. Will let you know how it goes
– BiGGZ
Jan 19 '17 at 14:28
What goes? Two key have different sha1?or what?
– Vyacheslav
Jan 19 '17 at 14:31
What goes? Two key have different sha1?or what?
– Vyacheslav
Jan 19 '17 at 14:31
Yes. My debug key had a different SHA1 than my release key. So now im making an API key using the release SHA1 and il let you know if that works
– BiGGZ
Jan 19 '17 at 14:41
Yes. My debug key had a different SHA1 than my release key. So now im making an API key using the release SHA1 and il let you know if that works
– BiGGZ
Jan 19 '17 at 14:41
|
show 2 more comments
Just add string not from resources(@string/google_maps_key), but hardcode.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIza..." />
add a comment |
Just add string not from resources(@string/google_maps_key), but hardcode.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIza..." />
add a comment |
Just add string not from resources(@string/google_maps_key), but hardcode.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIza..." />
Just add string not from resources(@string/google_maps_key), but hardcode.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIza..." />
edited Nov 13 '18 at 18:40
wibeasley
2,3471232
2,3471232
answered Nov 13 '18 at 18:14
Anatoliy KolesnikAnatoliy Kolesnik
111
111
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f41743234%2fandroid-google-maps-release-key%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown