Turn off Android Instant Run through the gradle property?

I know that instant start can be disabled in the Settings dialog box, but I would like to disable it through the property from the gradle build script itself. So no matter which instance of Android Studio loads this project, it will never be created with instant start enabled.

Is it possible?

+4
source share
1 answer

Android Instant is a new feature in the 2.1.0 build tools, so you can reduce the vesion level to 2.0.0. example in assembly script :

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

, gradle 2.10 - 2.13

+2

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


All Articles