Disable instant project start

I have a project that is not under construction if you try to create it with Instant Run turned on. Therefore, I would like to disable Instant Run for this project.

Can I do this in a way that can be tied to a repository?

+5
source share
2 answers

if you want to disable instant start ONLY for a project that is incompatible (i.e. with SugarORM lib)

in the root of your projct open gradle -> gradle -wrapper.properties then change distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

and in the build.gradle project change the value

 classpath 'com.android.tools.build:gradle:2.2.3' 

enter image description here

If you want to disable instant start for the whole project (via Android Studio) , see this

0
source

It is not possible to disable Instant Run for a project, only the currently stable version of Android Studio 2.3

But to create a project correctly with instant start enabled, and this will not affect the project, try deleting the .idea and .gradle , and then click Sync Project with Gradle Files , when the process is completed, try starting the application.

We hope that this solution will work for you.

0
source

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


All Articles