When I upgraded to Android Studio 3.1, the instant start features (hot swap, warm swap) stopped working.
Every time I click the “Apply Changes” button (Instant Run Flash), Android Studio restarts my application (even for small user interface changes) for each OS above the candy. (Both on the physical device and on the emulator)
My instant launch setup is

The message I get from Android Studio is

I tried -
- Rebooting the laptop after updating Android Studio.
- Invalid cache and restart
- Closing a project and importing it again
.
, , .
UPDATE: -
Gradle -
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.google.gms:google-services:3.2.0'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
mavenCentral()
maven { url 'https://maven.google.com' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
File > Project Structure > Project menu Gradle Version 4.4 Android Plugin Version 3.1.0.