Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

APK signing failed! Key associated with user not a private key

Discussion in 'Android' started by Adrenaline-Crew, Oct 2, 2011.

  1. Adrenaline-Crew

    Adrenaline-Crew

    Joined:
    Dec 14, 2010
    Posts:
    400
    Anyone know why this is happening? I can not upgrade my game now, the build will not work due to this...which i dont know how to get it to BE private again?

    APK signing failed! Key associated with user not a private key
     
  2. Adrenaline-Crew

    Adrenaline-Crew

    Joined:
    Dec 14, 2010
    Posts:
    400
    I mean this is a huge issue, no one has this, or is aware how to fix?
     
  3. kiranmaya

    kiranmaya

    Joined:
    May 27, 2010
    Posts:
    218
    u have to use same key which is used for version 1,
    and change build version to 2.0 in case uploading the new apk to same bundle identifier .
     
  4. Adrenaline-Crew

    Adrenaline-Crew

    Joined:
    Dec 14, 2010
    Posts:
    400
    I do, it gives that error.

    ERROR!
    APK signing failed! Key associated with Adrenaline not a private key
     
  5. Adrenaline-Crew

    Adrenaline-Crew

    Joined:
    Dec 14, 2010
    Posts:
    400
    APK Signing Failed!
    jarsigner: key associated with adrenaline not a private key

    UnityEngine.Debug:LogError(Object)
    PostProcessAndroidPlayer:SignAndroidPackage(String, Single, Single)
    PostProcessAndroidPlayer:postProcess(BuildTarget, String, String, String, String, String, String, BuildOptions)
    UnityEditor.HostView:OnGUI()

    anyone?
     
  6. Adrenaline-Crew

    Adrenaline-Crew

    Joined:
    Dec 14, 2010
    Posts:
    400
    Come on, no one has any clue??? I mean none?
     
  7. Adrenaline-Crew

    Adrenaline-Crew

    Joined:
    Dec 14, 2010
    Posts:
    400
    great forum
     
  8. JokerT3F

    JokerT3F

    Joined:
    May 17, 2009
    Posts:
    1
    I got this issue too, for no obvious reason .

    1. I have deleted all information about my keystore/public key etc.. from the player settings
    2. Close Unity and delete my keystore
    3. Restart Unity, create a new Keystore

    Hope this help
     
    joergipoergi likes this.
  9. Smile Dragon

    Smile Dragon

    Joined:
    Jan 7, 2012
    Posts:
    7
    Same problem... Someone solved it?

    Unity version: 3.5.0b6
     
  10. Doucettej

    Doucettej

    Joined:
    Jan 18, 2010
    Posts:
    85
    same problem... it seems now that it works though.. changed the version to 2 but also in the meanwhile tried to create a new key.. that did not let me update the app online... choose the old key again and then it seems to have worked... uploading it now to see if it has actually worked... hope this helps someone.

    Jason
     
  11. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    jarsigner: key associated with <keyname> not a private key

    There can be several reasons for that messages, the most common one is that the key password is wrong. OBS! Not the password for the key storage but the password for the actual key.
     
    shacharoz likes this.
  12. Wozik

    Wozik

    Joined:
    Apr 10, 2009
    Posts:
    662
    Say even if removing all the info from the Publishing settings helps to workaround this issue, what do you do to bump into it?
     
  13. koki

    koki

    Joined:
    Nov 27, 2009
    Posts:
    43
    Same here. Is this a known unity bug? Tried to clean all data related to my key but with no success. Any ideas?
     
  14. averscer

    averscer

    Joined:
    Sep 12, 2012
    Posts:
    5
    I had this same issue. It was as bitter said, wrong password. I don't think it's a Unity bug, just a chair to keyboard interface problem. ^_^
     
    shacharoz likes this.
  15. Adrenaline-Crew

    Adrenaline-Crew

    Joined:
    Dec 14, 2010
    Posts:
    400
    It was lost forever and I had to make a new build.

    NEVER LOSE THIS INFO OR YOU WILL BE SCREWED!@
     
    shacharoz likes this.
  16. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    Hi, I just wanted to let you know that for 3.5.7 and 4.0 we did a major cleanup in regards to how we handle apk signing. Hopefully this will solve any problems previously related to different versions of java and/or different signing algorithms. The fix should also provide you with more detailed error messages as to what the problem is when the apk fails the signing process.
     
  17. Deleted User

    Deleted User

    Guest

    I know this is old, but I have Unity 2019.2.5 and still have this issue. All I can do to fix it is get a new keystore, which is not the best way to do things for updates. Last time this happened, I had to completely remove my app from the Play Store and start over. Is there a fix for this yet?
     
  18. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    835
    As previous posts point out, the problem is not with Unity. You are entering wrong password for your key.
     
    shacharoz likes this.
  19. AthosK

    AthosK

    Joined:
    Jan 20, 2013
    Posts:
    428
    I'm experiencing this issue myself, however the password is 100% correct (since it's the same as with the keystore and i'm simply copy pasting). So what else could it be? I'm attaching the Editor log just in case but here's the relevant parts

    > 1 exception was raised by workers:
    java.lang.RuntimeException: jarsigner.exefailed with exit code 1 :
    jarsigner: key associated with <> not a private key

    So what could it be?
     

    Attached Files:

  20. Xictaw

    Xictaw

    Joined:
    Mar 23, 2020
    Posts:
    1
  21. ElegantUniverse

    ElegantUniverse

    Joined:
    Sep 13, 2018
    Posts:
    78
    (sovled for me)
    hello i encountered with this error ,because i entered keystore password and then i copied keystore password and paste it into the project key password field and i saw there are so many character had paste then i remove all copied password , i entered password manually and this error appears despite i entered password manually. i closed unity and i entered password again without copying and it solved.
    in total,i think this error related to keystore and sign key.
     
  22. jswlee

    jswlee

    Joined:
    Jun 8, 2020
    Posts:
    3
    I was building out my app for Google Play (Build App Bundle) and encountered the following pop-up window error message, "1 exception was raised by workers: See the Console for details". I've double checked my Version (entered in 2), and also checked my Keystore and Key Project credentials in the Project Settings, and they are correct. Any insight on what else I need to do to fix this? Attached is the Console error message I got for this (92 errors), which appears to stem from a single problem.
     

    Attached Files: