Not able to disable Instant Run feature in Android Studio

2.9k views Asked by At

Android Studio Version: 3.1.2

I am not able to disable the instant run checkbox in the android studio.

Tried to disable from the below path

File → Settings → Build, Execution, Deployment → Instant Run and uncheck Enable Instant Run( the checkbox is grey out and I'm unable to click on it).

I tried uninstalling the android studio also. Please help me out here.

2

There are 2 answers

3
Mr.Drew On BEST ANSWER

It's tied to the app's gradle. https://developer.android.com/studio/run/#instant-run

I'm assuming you already used it once for the app. Try uninstalling the app from the target device/emulator (and unplugging/stopping it) then go to File-> Invalidate Caches and Restart. Then see if it still doesn't let you.

EDIT: Make sure gradle files are updated and the versions match.

0
Hitesh Kushwah On

Disable automatic activity restart

Open the Settings or Preferences dialog: On Windows or Linux, select File > Settings from the menu bar. On Mac OSX, select Android Studio > Preferences from the menu bar.

Navigate to Build, Execution, Deployment > Instant Run.

Uncheck the box next to Restart activity on code changes.