Android studio Update bundle jarsigner: key associated with key0 not a private key





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







5















-Want to update my published App with Android Studio.



-Fixed a bug.



-Changed to versionCode 2 and versionName "1.1" on build.gradle (Module)



-Generating Signed Bundle



-Key store path C:FolderFolderAndroidMyApp.jks



-Both passwords are correct



-Key alias: key0 (default as on first time)



then error:



Cause: jarsigner.exefailed with exit code 1 :
jarsigner: key associated with key0 not a private key



Thanks.










share|improve this question























  • did you got any solution for this. I am too facing this issue after update android studio to 3.3

    – Rakesh
    Jan 24 at 10:50


















5















-Want to update my published App with Android Studio.



-Fixed a bug.



-Changed to versionCode 2 and versionName "1.1" on build.gradle (Module)



-Generating Signed Bundle



-Key store path C:FolderFolderAndroidMyApp.jks



-Both passwords are correct



-Key alias: key0 (default as on first time)



then error:



Cause: jarsigner.exefailed with exit code 1 :
jarsigner: key associated with key0 not a private key



Thanks.










share|improve this question























  • did you got any solution for this. I am too facing this issue after update android studio to 3.3

    – Rakesh
    Jan 24 at 10:50














5












5








5


2






-Want to update my published App with Android Studio.



-Fixed a bug.



-Changed to versionCode 2 and versionName "1.1" on build.gradle (Module)



-Generating Signed Bundle



-Key store path C:FolderFolderAndroidMyApp.jks



-Both passwords are correct



-Key alias: key0 (default as on first time)



then error:



Cause: jarsigner.exefailed with exit code 1 :
jarsigner: key associated with key0 not a private key



Thanks.










share|improve this question














-Want to update my published App with Android Studio.



-Fixed a bug.



-Changed to versionCode 2 and versionName "1.1" on build.gradle (Module)



-Generating Signed Bundle



-Key store path C:FolderFolderAndroidMyApp.jks



-Both passwords are correct



-Key alias: key0 (default as on first time)



then error:



Cause: jarsigner.exefailed with exit code 1 :
jarsigner: key associated with key0 not a private key



Thanks.







java android-studio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 4 at 10:35









jerjer

283




283













  • did you got any solution for this. I am too facing this issue after update android studio to 3.3

    – Rakesh
    Jan 24 at 10:50



















  • did you got any solution for this. I am too facing this issue after update android studio to 3.3

    – Rakesh
    Jan 24 at 10:50

















did you got any solution for this. I am too facing this issue after update android studio to 3.3

– Rakesh
Jan 24 at 10:50





did you got any solution for this. I am too facing this issue after update android studio to 3.3

– Rakesh
Jan 24 at 10:50












2 Answers
2






active

oldest

votes


















2














"Build" -> "Clean project", then "Generate signed ..." again - worked fine for me






share|improve this answer































    0














    Well i also faced this problem after upgrading to android studio 3.3 and i resolved in 3 steps. But firstly make sure you backup your whole project.




    1. In Android Studio goto File > Project Structure and untick from "use embedded JDK" then click OK

    2. Goto Computer Settings (system settings) (win + pause key) then go to Advanced system settings>Environment variables. if JAVA_HOME not present then add it and set path to your installed JDK.
      As i couldn't find a direct approach to modify jdk path in my project that is upgraded in some way to android studio 3.3 settings, i did following(for the last step) BUT MAKE SURE YOU MAKE BACKUP BEFORE THIS.

    3. To make sure where i am guiding come to project view, I deleted ".grade", ".idea", "capture", "gradle" folders from the root and "build", "release", "lib" folder from "app" leaving "src" as it is. Deleted root.iml and did not delete app.iml file Then rebuild the project and then created the Signed package.


    It went successful after 2 try. To be very honest i did the last step twice by restoring files from backup. As deleting these folders i messed up 1 time.






    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%2f54037262%2fandroid-studio-update-bundle-jarsigner-key-associated-with-key0-not-a-private-k%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      "Build" -> "Clean project", then "Generate signed ..." again - worked fine for me






      share|improve this answer




























        2














        "Build" -> "Clean project", then "Generate signed ..." again - worked fine for me






        share|improve this answer


























          2












          2








          2







          "Build" -> "Clean project", then "Generate signed ..." again - worked fine for me






          share|improve this answer













          "Build" -> "Clean project", then "Generate signed ..." again - worked fine for me







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 28 at 20:42









          Koozy.uaKoozy.ua

          212




          212

























              0














              Well i also faced this problem after upgrading to android studio 3.3 and i resolved in 3 steps. But firstly make sure you backup your whole project.




              1. In Android Studio goto File > Project Structure and untick from "use embedded JDK" then click OK

              2. Goto Computer Settings (system settings) (win + pause key) then go to Advanced system settings>Environment variables. if JAVA_HOME not present then add it and set path to your installed JDK.
                As i couldn't find a direct approach to modify jdk path in my project that is upgraded in some way to android studio 3.3 settings, i did following(for the last step) BUT MAKE SURE YOU MAKE BACKUP BEFORE THIS.

              3. To make sure where i am guiding come to project view, I deleted ".grade", ".idea", "capture", "gradle" folders from the root and "build", "release", "lib" folder from "app" leaving "src" as it is. Deleted root.iml and did not delete app.iml file Then rebuild the project and then created the Signed package.


              It went successful after 2 try. To be very honest i did the last step twice by restoring files from backup. As deleting these folders i messed up 1 time.






              share|improve this answer




























                0














                Well i also faced this problem after upgrading to android studio 3.3 and i resolved in 3 steps. But firstly make sure you backup your whole project.




                1. In Android Studio goto File > Project Structure and untick from "use embedded JDK" then click OK

                2. Goto Computer Settings (system settings) (win + pause key) then go to Advanced system settings>Environment variables. if JAVA_HOME not present then add it and set path to your installed JDK.
                  As i couldn't find a direct approach to modify jdk path in my project that is upgraded in some way to android studio 3.3 settings, i did following(for the last step) BUT MAKE SURE YOU MAKE BACKUP BEFORE THIS.

                3. To make sure where i am guiding come to project view, I deleted ".grade", ".idea", "capture", "gradle" folders from the root and "build", "release", "lib" folder from "app" leaving "src" as it is. Deleted root.iml and did not delete app.iml file Then rebuild the project and then created the Signed package.


                It went successful after 2 try. To be very honest i did the last step twice by restoring files from backup. As deleting these folders i messed up 1 time.






                share|improve this answer


























                  0












                  0








                  0







                  Well i also faced this problem after upgrading to android studio 3.3 and i resolved in 3 steps. But firstly make sure you backup your whole project.




                  1. In Android Studio goto File > Project Structure and untick from "use embedded JDK" then click OK

                  2. Goto Computer Settings (system settings) (win + pause key) then go to Advanced system settings>Environment variables. if JAVA_HOME not present then add it and set path to your installed JDK.
                    As i couldn't find a direct approach to modify jdk path in my project that is upgraded in some way to android studio 3.3 settings, i did following(for the last step) BUT MAKE SURE YOU MAKE BACKUP BEFORE THIS.

                  3. To make sure where i am guiding come to project view, I deleted ".grade", ".idea", "capture", "gradle" folders from the root and "build", "release", "lib" folder from "app" leaving "src" as it is. Deleted root.iml and did not delete app.iml file Then rebuild the project and then created the Signed package.


                  It went successful after 2 try. To be very honest i did the last step twice by restoring files from backup. As deleting these folders i messed up 1 time.






                  share|improve this answer













                  Well i also faced this problem after upgrading to android studio 3.3 and i resolved in 3 steps. But firstly make sure you backup your whole project.




                  1. In Android Studio goto File > Project Structure and untick from "use embedded JDK" then click OK

                  2. Goto Computer Settings (system settings) (win + pause key) then go to Advanced system settings>Environment variables. if JAVA_HOME not present then add it and set path to your installed JDK.
                    As i couldn't find a direct approach to modify jdk path in my project that is upgraded in some way to android studio 3.3 settings, i did following(for the last step) BUT MAKE SURE YOU MAKE BACKUP BEFORE THIS.

                  3. To make sure where i am guiding come to project view, I deleted ".grade", ".idea", "capture", "gradle" folders from the root and "build", "release", "lib" folder from "app" leaving "src" as it is. Deleted root.iml and did not delete app.iml file Then rebuild the project and then created the Signed package.


                  It went successful after 2 try. To be very honest i did the last step twice by restoring files from backup. As deleting these folders i messed up 1 time.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 24 at 19:51









                  Vanshaj DagaVanshaj Daga

                  45447




                  45447






























                      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%2f54037262%2fandroid-studio-update-bundle-jarsigner-key-associated-with-key0-not-a-private-k%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

                      Monofisismo

                      Angular Downloading a file using contenturl with Basic Authentication

                      Olmecas