Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SigningConfig "release" is missing required property "keyPassword"

The error complains that I have not set the signingConfig.release.keyPassword, however I am setting it.

I already tried hardcoding the password instead retrieving it from the key.properties file however that didn't help.

// build.gradle file  

// ... the rest of the build code

android {        

    signingConfigs {
        release {
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
            storeFile file(keystoreProperties['storeFile'])
            storePassword keystoreProperties['storePassword']
        }
    }

    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
} 
like image 950
user1805015 Avatar asked Sep 11 '19 06:09

user1805015


1 Answers

try this: In build.gradle(Module: app)

// ... the rest of the build code

android {

    signingConfigs {
        release {
            storeFile file('your_key_store_path')
            storePassword 'your_store_password'
            keyAlias = 'your_key_alias'
            keyPassword 'your_key_password'
        }
    }

    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
}

Also you can create Signing Configs in Android Studio:
File > Project Structure > Select Modules > Select Signing Configs. In Signing Configs, there is debug config is already created but you can create a new one by pressing the + icon.

like image 133
MojoJojo Avatar answered Nov 14 '22 22:11

MojoJojo