I can change the name of build apk file with this code in app level build.gradle
buildTypes {
release {
signingConfig signingConfigs.debug
applicationVariants.all { variant ->
variant.outputs.all {
def applicationName = "DPAY"
outputFileName = "${applicationName}_${defaultConfig.versionName}.apk"
}
}
}
}
But when i'm building with --split-per-abi flag i receive error
Execution failed for task ':app:packageRelease'.
> Multiple task action failures occurred:
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> Could not find EOCD in '.../release/DPAY_0.4.21122021.apk'
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> Could not find EOCD in '.../release/DPAY_0.4.21122021.apk'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
I know that because build multiple file with same name, how can i config file name per abi?