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

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

  1. Adrenaline Crew

    Adrenaline Crew

    Member

    Joined:
    Dec 14, 2010
    Messages:
    395
    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

    Member

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

    kiranmaya

    Member

    Joined:
    May 27, 2010
    Messages:
    211
    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

    Member

    Joined:
    Dec 14, 2010
    Messages:
    395
    I do, it gives that error.

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

    Adrenaline Crew

    Member

    Joined:
    Dec 14, 2010
    Messages:
    395
    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

    Member

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

    Adrenaline Crew

    Member

    Joined:
    Dec 14, 2010
    Messages:
    395
    great forum
     
  8. JokerT3F

    JokerT3F

    Member

    Joined:
    May 17, 2009
    Messages:
    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
     
  9. Smile Dragon

    Smile Dragon

    Member

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

    Unity version: 3.5.0b6
     
  10. Doucettej

    Doucettej

    New Member

    Joined:
    Jan 18, 2010
    Messages:
    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
    Messages:
    278
    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.
     
  12. Wozik

    Wozik

    New Member

    Joined:
    Apr 10, 2009
    Messages:
    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

    Member

    Joined:
    Nov 27, 2009
    Messages:
    37
    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

    New Member

    Joined:
    Sep 12, 2012
    Messages:
    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. ^_^
     
  15. Adrenaline Crew

    Adrenaline Crew

    Member

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

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

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Messages:
    278
    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.