APK signing error : Failed to read key from keystore

前端 未结 8 1444
时光取名叫无心
时光取名叫无心 2020-12-01 03:46

I\'m developing android app under intellij and gradle. and using following way to generate keystore file:

keytool -genkey -v -keystore my-release-key.keystor         


        
相关标签:
8条回答
  • In my case, while copying the text from other source it somehow included the space at the end of clipboard entry. That way the key password had a space at the end.

    0 讨论(0)
  • 2020-12-01 03:50

    The big thing is either the alias or the other password is wrong. Kindly check your passwords and your issue is solved. Incase you have forgotten password, you can recover it from the androidStuido3.0/System/Log ... Search for the keyword password and their you are saved

    0 讨论(0)
  • 2020-12-01 03:53

    Most likely that your key alias does not exist for your keystore file.

    This answer should fix your signing issue ;)

    0 讨论(0)
  • 2020-12-01 03:54

    For someone not using the signing configs and trying to test out the Cordova Release command by typing all the parameters at command line, you may need to enclose your passwords with single quotes if you have special characters in your password

    cordova run android --release -- --keystore=../my-release-key.keystore --storePassword='password' --alias=alias_name --password='password'
    
    0 讨论(0)
  • 2020-12-01 03:56

    Removing double-quotes solve my problem, now its:

    DEBUG_STORE_PASSWORD=androiddebug
    DEBUG_KEY_ALIAS=androiddebug
    DEBUG_KEY_PASSWORD=androiddebug
    
    0 讨论(0)
  • 2020-12-01 04:06

    It could be any one of the parameter, not just the file name or alias - for me it was the Key Password.

    0 讨论(0)
提交回复
热议问题