Android google maps release key?












2















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.










share|improve this question



























    2















    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.










    share|improve this question

























      2












      2








      2








      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.










      share|improve this question














      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.







      android google-maps






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 19 '17 at 13:42









      BiGGZBiGGZ

      352214




      352214
























          3 Answers
          3






          active

          oldest

          votes


















          1














          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.






          share|improve this answer
























          • Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup

            – minhazur
            Apr 11 '18 at 18:05





















          1















          1. You have to enable Google Maps API here:


          https://console.developers.google.com/apis/dashboard




          1. You have to create key here:


          https://console.developers.google.com/apis/credentials/oauthclient?




          1. Put your key into AndroidManifest.xml file.


          That's it!



          More detailed:



          https://developers.google.com/maps/documentation/android-api/config?hl=en






          share|improve this answer
























          • 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





















          1














          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..." />





          share|improve this answer

























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            1














            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.






            share|improve this answer
























            • Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup

              – minhazur
              Apr 11 '18 at 18:05


















            1














            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.






            share|improve this answer
























            • Here is the link to get detail instruction developers.google.com/maps/documentation/android-api/signup

              – minhazur
              Apr 11 '18 at 18:05
















            1












            1








            1







            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.






            share|improve this answer













            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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





















            • 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















            1















            1. You have to enable Google Maps API here:


            https://console.developers.google.com/apis/dashboard




            1. You have to create key here:


            https://console.developers.google.com/apis/credentials/oauthclient?




            1. Put your key into AndroidManifest.xml file.


            That's it!



            More detailed:



            https://developers.google.com/maps/documentation/android-api/config?hl=en






            share|improve this answer
























            • 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


















            1















            1. You have to enable Google Maps API here:


            https://console.developers.google.com/apis/dashboard




            1. You have to create key here:


            https://console.developers.google.com/apis/credentials/oauthclient?




            1. Put your key into AndroidManifest.xml file.


            That's it!



            More detailed:



            https://developers.google.com/maps/documentation/android-api/config?hl=en






            share|improve this answer
























            • 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
















            1












            1








            1








            1. You have to enable Google Maps API here:


            https://console.developers.google.com/apis/dashboard




            1. You have to create key here:


            https://console.developers.google.com/apis/credentials/oauthclient?




            1. Put your key into AndroidManifest.xml file.


            That's it!



            More detailed:



            https://developers.google.com/maps/documentation/android-api/config?hl=en






            share|improve this answer














            1. You have to enable Google Maps API here:


            https://console.developers.google.com/apis/dashboard




            1. You have to create key here:


            https://console.developers.google.com/apis/credentials/oauthclient?




            1. Put your key into AndroidManifest.xml file.


            That's it!



            More detailed:



            https://developers.google.com/maps/documentation/android-api/config?hl=en







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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





















            • 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













            1














            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..." />





            share|improve this answer






























              1














              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..." />





              share|improve this answer




























                1












                1








                1







                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..." />





                share|improve this answer















                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..." />






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 13 '18 at 18:40









                wibeasley

                2,3471232




                2,3471232










                answered Nov 13 '18 at 18:14









                Anatoliy KolesnikAnatoliy Kolesnik

                111




                111






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    List item for chat from Array inside array React Native

                    Thiostrepton

                    Caerphilly