title: Android Studio 3.1 Instant Run not working
body: <p>When I updated to Android Studio 3.1, Instant Run features (hot swap, warm swap) stopped working.<br/> 
  Every time when I click on Apply Changes (Instant Run Flash option), Android Studio is restarting my app (even for small UI changes) for every OS above lollipop. (On physical device as well as emulator)</p>
  
  <p>My Instant Run Setting - </p>
  
  <p><a href="https://i.stack.imgur.com/V7mgH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V7mgH.png" alt="enter image description here"></a></p>
  
  <p>Message that I get from Android Studio - 
  <a href="https://i.stack.imgur.com/PpQ3x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PpQ3x.png" alt="enter image description here"></a></p>
  
  <p>I tried - <br/></p>
  
  <ol>
  <li>Restarting laptop after Android Studio update.</li>
  <li>Invalidating cache and restart </li>
  <li>Closing the project and import it again</li>
  </ol>
  
  <p>Nothing worked for me.
  Please help me with this and kindly let me know any more information is needed from my side.</p>
  
  <p>UPDATE:- </p>
  
  <p>My Top level Gradle code - </p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
  
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.1.0'
          classpath 'com.google.gms:google-services:3.2.0'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          maven { url "https://jitpack.io" }
          mavenCentral()
          maven { url 'https://maven.google.com' }
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>In my <code>File &gt; Project Structure &gt; Project menu</code>, it is showing my <code>Gradle Version</code> as <code>4.4</code> and <code>Android Plugin Version</code> as <code>3.1.0</code>. </p>