1.生成证书
keytool -genkey -alias android.keystore -keyalg RSA -validity 20000 -keystore android.keystore
2.编辑~/.gradle/gradle.properties
RELEASE_STORE_FILE=C:\\Users\\Administrator\\.gradle\\android.keystore
RELEASE_STORE_PASSWORD=888888
RELEASE_KEY_ALIAS=android.keystore
RELEASE_KEY_PASSWORD=888888
3.配置gradle文件
signingConfigs{debug{storeFilefile(RELEASE_STORE_FILE) storePassword RELEASE_STORE_PASSWORD keyAlias RELEASE_KEY_ALIAS keyPassword RELEASE_KEY_PASSWORD } release {storeFilefile(RELEASE_STORE_FILE) storePassword RELEASE_STORE_PASSWORD keyAlias RELEASE_KEY_ALIAS keyPassword RELEASE_KEY_PASSWORD }}
网友评论