本文共 766 字,大约阅读时间需要 2 分钟。
选中项目,右键 -> open Module Setting
Module -> app-> 选项卡(Signing),添加release
Build Types选项卡,选中debug中的Signing Config,选择“debug”,这个也是刚刚在signing配置时自己添加取的名。
app下的builde.gradle配置:
signingConfigs { release { keyAlias "name_xxx" keyPassword "pwd_xxx" storeFile file("D:/xxx.jks") storePassword "pwd_xxx" } debug { keyAlias 'name_xxx' keyPassword 'pwd_xxx' storeFile file('D:/xxx.jks') storePassword 'pwd_xxx' } }
buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { signingConfig signingConfigs.release } }
转载地址:http://nfcgi.baihongyu.com/