Android studio 3.1 run command does not rebuild the APK : <p>This is very annoying aspect of the new android studio version 3.1, I used to launch run command after every code changes, the IDE rebuilds the (whole project &amp; APK) and then deploys it on the target device.</p>

<p>Then after upgrading to version 3.1, the run command does not rebuild the apk any more, and displays the following error messages.</p>

<blockquote>
  <p>android studio 3.1    Session 'app': Error Installing APK</p>
  
  <p>android studio 3.1  The APK file Error while Installing APK</p>
</blockquote>

<p>so I have click on" rebuild &amp; run" each time I make code modification, how can I restore the old behavior of version 3.0.1</p>
