<p dir="auto">When I tried to modify the file name of the release version apk through the gradle script, the build failed. This is what I add in build.gradle:</p>
<div class="highlight highlight-source-groovy notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    applicationVariants.all { variant -&gt;
        variant.outputs.all { output -&gt;
            def outputFile = output.outputFile
            if (outputFile != null
                    &amp;&amp; outputFile.name.endsWith('.apk')
                    &amp;&amp; outputFile.name.contains('-release')) {
                outputFileName = &quot;industry_${defaultConfig.versionCode}_v${defaultConfig.versionName}_${new Date().format(&quot;yyyyMMdd&quot;)}.apk&quot;
            }
        }
    }"><pre class="notranslate">    applicationVariants<span class="pl-k">.</span>all { <span class="pl-v">variant</span> <span class="pl-k">-&gt;</span>
        variant<span class="pl-k">.</span>outputs<span class="pl-k">.</span>all { <span class="pl-v">output</span> <span class="pl-k">-&gt;</span>
            <span class="pl-k">def</span> outputFile <span class="pl-k">=</span> output<span class="pl-k">.</span>outputFile
            <span class="pl-k">if</span> (outputFile <span class="pl-k">!=</span> <span class="pl-c1">null</span>
                    <span class="pl-k">&amp;&amp;</span> outputFile<span class="pl-k">.</span>name<span class="pl-k">.</span>endsWith(<span class="pl-s"><span class="pl-pds">'</span>.apk<span class="pl-pds">'</span></span>)
                    <span class="pl-k">&amp;&amp;</span> outputFile<span class="pl-k">.</span>name<span class="pl-k">.</span>contains(<span class="pl-s"><span class="pl-pds">'</span>-release<span class="pl-pds">'</span></span>)) {
                outputFileName <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">"</span>industry_<span class="pl-s1"><span class="pl-pse">${</span>defaultConfig.versionCode<span class="pl-pse">}</span></span>_v<span class="pl-s1"><span class="pl-pse">${</span>defaultConfig.versionName<span class="pl-pse">}</span></span>_<span class="pl-s1"><span class="pl-pse">${</span>new Date().format("yyyyMMdd")<span class="pl-pse">}</span></span>.apk<span class="pl-pds">"</span></span>
            }
        }
    }</pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10418364/45747092-6ba50480-bc37-11e8-8c86-ce8473d64ed0.png"><img src="https://user-images.githubusercontent.com/10418364/45747092-6ba50480-bc37-11e8-8c86-ce8473d64ed0.png" alt="screen shot 2018-09-19 at 18 11 13" style="max-width: 100%;"></a></p>
<p dir="auto">flutter doctor:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.1)
[!] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
[✓] VS Code (version 1.27.1)
[✓] Connected devices (2 available)"><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.1)
[!] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
[✓] VS Code (version 1.27.1)
[✓] Connected devices (2 available)
</code></pre></div>
<p dir="auto">I just tried <code class="notranslate">flutter run</code> and it failed with this message: <code class="notranslate">Gradle build failed to produce an Android package.</code></p>
<p dir="auto">Can we print a message like "Please see <strong>this log file</strong> for more information" ? I'd love to know what to do.</p>
<p dir="auto">I looked and there's no .log file in my project's root.</p>