Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not get unknown property 'RELEASE_STORE_PASSWORD' for SigningConfig_Decorated{name=debugY

I've been having this problem recently as I'm searching everywhere, also here in stack, I see a lot of different answers.
Does anybody know how to solve this one?

Error:(46, 0) Could not get unknown property 'RELEASE_STORE_PASSWORD' for SigningConfig_Decorated{name=debug, storeFile=C:\Users\— Shahab —\Desktop\master\TMessagesProj\config\release.keystore, storePassword=android, keyAlias=AndroidDebugKey, keyPassword=android, storeType=C:\Users\— Shahab —\Desktop\master\TMessagesProj\config\release.keystore, v1SigningEnabled=true, v2SigningEnabled=true} of type com.android.build.gradle.internal.dsl.SigningConfig. Open File

like image 776
Michael Avatar asked Jun 04 '17 09:06

Michael


2 Answers

Make sure that you have added the below line in your build.gradle file @ android/app.


def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

like image 129
Sachin Mishra Avatar answered Sep 23 '22 13:09

Sachin Mishra


Can you share your build gradle file? It seems that there is some problem in your Signing Configs.

Sharing a demo Signing Config code.

signingConfigs {
    release {
        storeFile file('demo.jks')
        storePassword "demo123"
        keyAlias "demo"
        keyPassword "demo123"
    }
}
like image 35
Jubin Mathai Avatar answered Sep 23 '22 13:09

Jubin Mathai



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!