Not able to disable Instant Run feature in Android Studio
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.
How to disable Instant Run for Android Studio 3.0
Finally fixed!
As other users on Linux and such saw the Instant Run option in the settings, I tried reinstalling and resetting the installation, following https://stackoverflow.com/a/19397632/1926621
Removed all old settings, and installation of Android Studio( kept the SDK files). Changed the path. Opened the same project, and the options were now there!
How to activate Instant Run in AndroidStudio 2.0
Instant Run is enabled by default for projects built using Android Gradle Plugin 2.0.0, or later. To update an existing project with the latest version of the Gradle plugin, go to the Settings dialog:
On Mac, click Android Studio → Preferences
On Windows and Linux, click File → Settings
In the Settings/Preferences dialog, go to Build, Execution, Deployment → Instant Run.
Click the Update Project link. When prompted, click OK.
If the the Update Project link does not appear, your project is already up to date.
Using Instant Run
To first run your app, click Run ‘app’ (or Debug ‘app’ ). Android Studio will run your app by compiling, dexing, packaging and installing an .APK file, and launching the app. After your app has launched, a small, yellow thunderbolt will appear with the Run ‘app’ button (or Debug ‘app’ button). This indicates that the Instant Run feature is ready.
Clicking Run ‘app’ (or Debug ‘app’) again will start an Instant Run and your changes are pushed to the connected device within a few seconds.
To terminate the running app on your device, click Stop ‘app’ .
Disable Instant Run for project
if you want to disable instant-run ONLY for the project that is not compatible (i.e the one with SugarORM lib)
on root of your projct open gradle-->gradle-wrapper.properties then change the value
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
and
on your project build.gradle change the value
classpath 'com.android.tools.build:gradle:2.2.3'
If you want to disable instant-run for all project (Across Android Studio) see this
How to disable Instant Run in Android Studio 4.0?
I've faced the same issue and disabling parallel run option in the edit configuration window solved the issue for me.
How to disable Instant Run rebuild for a specific module?
Basically, what I did was to remove every single dependency in the project and look if Instant Run was making Hot Swaps or Cold Swaps. I detected that the card.io library was breaking the Hot Swapping, so I took the production version of the library from the build/outputs folder and imported it as aar into the project.
Related Topics
Auto Scale Textview Text to Fit Within Bounds
How to Store Image as Blob in Sqlite & How to Retrieve It
Your Content Must Have a Listview Whose Id Attribute Is 'Android.R.Id.List'
Getting Exception "Illegalstateexception: Can Not Perform This Action After Onsaveinstancestate"
Drawing a Line/Path on Google Maps
How to Use Prepared Statements in Sqlite in Android
Android Min Sdk Version Vs. Target Sdk Version
How to Make a Custom Keyboard in Android
Handle Textview Link Click in My Android App
Android Studio Suddenly Cannot Resolve Symbols
How to Display a Toast from a Background Thread on Android
Integrating the Zxing Library Directly into My Android Application
How to Put Google Maps V2 on a Fragment Using Viewpager
How to Completely Uninstall Android Studio from Windows(V10)