の代わりに別の名前を取得するためにいくつか変更を加えました。アンドロイド - デバッグ.apkこれはビルド後に自動的に生成されます。しかし、私の変化はうまくいかないようです。ここに私のbuild.gradle私はアンドロイドプラットフォームを作成した後に生成されるファイルです。それがなぜ機能しないのかを確認して教えてください。私はアンドロイドスタジオ/日食ではないコマンドプロンプトでこれらすべてを実行しています。 apkの名前が変更されてコードワーカー
if (cdvReleaseSigningPropertiesFile) {
signingConfigs {
release {
// These must be set or Gradle will complain (even if they are overridden).
keyAlias = ""
keyPassword = "__unset" // And these must be set to non-empty in order to have the signing step added to the task graph.
storeFile = null
storePassword = "__unset"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig getSigningConfig()
applicationVariants.all { variant ->
variant.outputs.each { output ->
def date = new Date();
def formattedDate = date.format('yyyyMMddHHmmss')
output.outputFile = new File(output.outputFile.parent,
output.outputFile.name.replace("-release", "-" + formattedDate)
//for Debug use output.outputFile = new File(output.outputFile.parent,
// output.outputFile.name.replace("-debug", "-" + formattedDate)
)
}
}
}
}
addSigningProps(cdvReleaseSigningPropertiesFile, signingConfigs.release)
}
if (cdvDebugSigningPropertiesFile) {
addSigningProps(cdvDebugSigningPropertiesFile, signingConfigs.debug)
}
}
は、私はそれがこのようなものだった
buildTypeに変更を加えて前に。
buildTypes {
release {
signingConfig signingConfigs.release
}
}