背景:
阅读新闻

创建keystore文件

  作者: 今日评论: [字体: ]

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.



来源:
录入日期:[2017/06/13 4:19:00]
收藏 推荐 打印 | 录入:mikebai | 阅读:
文章评论      
正在加载评论列表...
评论表单加载中...