android { ... signingConfigs { release { storeFile file('c:/users/your_name/key.jks') storePassword 'your_store_password' keyPassword 'your_key_password' keyAlias 'key' } } buildTypes { release { signingConfig signingConfigs.release // 配置其他发布相关的选项,如混淆等 } } }