作者:Scarlett_girl | 来源:互联网 | 2023-10-10 11:13
目录1.生成keystore2.获取keystore的SHA1信息3.设置AndroidStudio运行默认的keystore1.生成keystoreBuild-Gener
目录
1. 生成keystore
2. 获取keystore的SHA1信息
3. 设置AndroidStudio运行默认的keystore
1. 生成keystore
Build->Generate Signed APK ->Create New->进行创建
2. 获取keystore的SHA1信息
keytool -list -v -keystore niuba-debug.jks
3. 设置AndroidStudio运行默认的keystore
File->Project Structure->选择模块->切换到Signing->添加你的keystore
添加完成之后,在模块的build.gradle中会自动添加签名信息:
signingConfigs {niuba_debug {keyAlias 'niubashaoye'keyPassword 'niubashaoye'storeFile file('F:/牛八项目/keystore/niuba-debug.jks')storePassword 'niubashaoye'}}