Android Studio 3.1 Instant Run not working

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

enter image description here

The message I get from Android Studio is enter image description here

I tried -

  • Rebooting the laptop after updating Android Studio.
  • Invalid cache and restart
  • Closing a project and importing it again

. , , .

UPDATE: -

Gradle -

// 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
}

File > Project Structure > Project menu Gradle Version 4.4 Android Plugin Version 3.1.0.

+4
1

gradle. 4.x

dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
    }

.

0

Source: https://habr.com/ru/post/1695861/


All Articles