Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off Android Instant Run via gradle property?

I know that instant run may be turned off via the Settings dialog, but I'd like to be able to turn it off via a property from within a gradle build script itself. So that regardless of which instance of Android Studio loads this project it will never build with instant run enabled.

Is this possible?

like image 522
skatefriday Avatar asked Nov 08 '22 12:11

skatefriday


1 Answers

Android Instant is a new feature in build tools 2.1.0,so you can decrease ths vesion to 2.0.0. example in build script:

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

You will also need to change your project settings to use gradle version between 2.10 - 2.13 Reference Link

like image 91
Pi Pi Avatar answered Nov 15 '22 05:11

Pi Pi