 <p>That's very strange as flavor and ABI-name is automatically added to build name (if you make corresponding assemble)</p> <p>can you try completely remove your custom made naming </p> <pre><code> applicationVariants.all { variant -&gt; variant.outputs.each { output -&gt; def flavor = .... // some code to parse flavor &amp; determine an appropriate string from it output.outputFile = new File(output.outputFile.parent, "app_" + flavor + "_0" + variant.versionCode + ".apk") } } </code></pre> <p>and instead of that try to add to defaultConfig this line</p> <pre><code> archivesBaseName = "app_${versionCode}" </code></pre> <p>If this is will not resolve you issues you can try to get abi from output</p> <pre><code>output.getFilter(com.android.build.OutputFile.ABI) </code></pre>