為了測試微信分享,微信分享必須有簽名信息才能成功調用微信,所以需要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 } }