找不到用于签名config'debug'的密钥库文件D \ Telegram-master \ TMessagesProj \ config \ release.keystore [英] Keystore file D\Telegram-master\TMessagesProj\config\release.keystore not found for signing config 'debug'

查看:366
本文介绍了找不到用于签名config'debug'的密钥库文件D \ Telegram-master \ TMessagesProj \ config \ release.keystore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了电报的新版本.运行它时,此错误显示:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆