I have a new install of Android Studio and I'm starting my first project. I was looking for ways to speed up my deploy/test development cycle when I read that I already should have the Instant Run feature enabled.
I double checked a few settings:
Tools->Android->Enable ADB Integration
is checkedFile->Settings->Build, Execution, Deployment->Instant Run
Enable Instant Run... is checked, along with Restart activity on code changes and Show Toasts in the running app...My emulator is a Nexus 5, API 24
- The Android gradle plugin is defined as:
classpath 'com.android.tools.build:gradle:2.2.3'
- The project minSdkVersion is 16 and targetSdkVersion is 25
And yet, the Instant Run icons do not appear on my Run configurations and redeploying involves restarting the whole app and takes about a minute. Some possibilities for the error:
I read that DDMS must be disabled for Instant Run to work in another question. I don't know if that's true since I don't see it mentioned in the official documentation, but if I go to the Android Device Monitor I see a DDMS button that cannot be uncheked.
Anticipating a future integration, I enabled this project to allow for C++ code to be integrated. I'm not sure if that plays a part.