为了测试微信分享,微信分享必须有签名信息才能成功调用微信,所以需要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 } }

  

版权声明:本文为wupeng88原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/wupeng88/p/11270712.html