I am launching my Android application from Android Studio, and Instant Run is starting up, which is great. I want to run the same thing from the command line.
In the Android Studio event log, I see
22:00:28 Executing tasks: [:app:incrementalDevDebugSupportDex] 22:00:48 Gradle build finished in 20s 286ms 22:00:51 Instant Run applied code changes and restarted the current Activity.
So, I expected that I could run this task from the command line: ./gradlew :app:incrementalDevDebugSupportDex
. However, it was not found:
FAILURE: Build failed with an exception. * What went wrong: Task 'incrementalDevDebugSupportDex' not found in project ':app'.
Is there a way to start using Instant Run from the command line?
source share