android studio 菜单 -> buid -> Generate Signed Apk 创建jks后缀的签名件
然后在build.grade 中引用
android {
signingConfigs {
config01 {
keyAlias 'MXXXXE'
keyPassword 'XXXXX'
storeFile file("E:/XXXXX/focusdict.jks")
storePassword 'XXXXX'
}
}
I have not fully fixed this issue, but I think it is related to the following entries in 'Telegram\TMessagesProj\build.gradle':
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
}
}
Note that the DEBUG config is set to us a 'release.keystore'.
The passwords and alias are stored in 'Telegram\gradle.properties' and I have had some success by changing these to the ones I use when signing APKs and changing the debug line to point to your own signing key (created through Android Studio).
E.g. Change the line to
debug { storeFile file("path/to/your/signing/key/ApkSigning.jks") ... }
And set the appropriate passwords and alias in the gradle properties file.
Hope that helps.