android:screenOrientation="portrait">
生成秘钥可用
keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
生成秘钥可用
keytool -genkey -v -keystore hello.keystore -alias hello -keyalg RSA -validity 20000
最后打包命令
./gradlew assembleRelease(不好使)
gradlew assembleRelease --console plain
别名:hello
signingConfigs {
release {
storeFile file("./hello.keystore")
storePassword "smile1314"
keyAlias "hello"
keyPassword "hello"
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}