Android 配置正式签名和debug签名
为了测试微信分享,微信分享必须有签名信息才能成功调用微信,所以需要debug 下设置签名,方便调试
build.gradle里,配置2个签名: signingConfigs { release { keyAlias \'xxx\' keyPassword \'xxx\' storeFile file(\'../xxx.keystore\') storePassword \'xxx\' } debug { keyAlias \'androiddebugkey\' keyPassword \'android\' storeFile file(\'./xxx.keystore\') storePassword \'android\' } buildTypes { debug { signingConfig signingConfigs.release } release { signingConfig signingConfigs.release } }