I downloaded new version of Telegram. When run it,This error has shown:
Keystore file D\Telegram-master\TMessagesProj\config\release.keystore not found for signing config 'debug'.
How fix it?
Checkout the signingConfig
part of build.gradle
file:
signingConfigs {
debug {
storeFile file("config/release.keystore")
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
release {
storeFile file("config/release.keystore")
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
RELEASE_STORE_PASSWORD, RELEASE_KEY_ALIAS and RELEASE_KEY_PASSWORD are located in grade.properties
file:
RELEASE_KEY_PASSWORD=password
RELEASE_KEY_ALIAS=alias
RELEASE_STORE_PASSWORD=password
android.useDeprecatedNdk=true
Now, you must create a keystore file (one way is to go Build -> Generate Signed APK... and then creating the keystone at the first step), name it release.keystore
and place it at D\Telegram-master\TMessagesProj\config\
. Note the key password, alias and store password that you used. Put them in the appropriate place in grade.properties
file.
Run/Build. The error must be gone.