androidandroid-studioandroid-instant-runinstant-run

Not able to disable Instant Run feature in Android Studio


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.


Solution

  • 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.