在build.gradle中加入gradle
signingConfigs { debug { keyAlias '' keyPassword '' storeFile file('keystore完整路徑') storePassword '' } releaseConfig {} }