找不到用于签名config'debug'的密钥库文件D \ Telegram-master \ TMessagesProj \ config \ release.keystore [英] Keystore file D\Telegram-master\TMessagesProj\config\release.keystore not found for signing config 'debug'
问题描述
我下载了电报的新版本.运行它时,此错误显示:
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'.
如何解决?
推荐答案
检出build.gradle
文件的signingConfig
部分:
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和RELEASE_KEY_PASSWORD位于grade.properties
文件中:
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
现在,您必须创建一个密钥库文件(一种方法是转到 Build-> Generate Signed APK ... ,然后在第一步中创建梯形失真),将其命名为release.keystore
并将其放置在grade.properties
文件中的适当位置.
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.
这篇关于找不到用于签名config'debug'的密钥库文件D \ Telegram-master \ TMessagesProj \ config \ release.keystore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!