我正在使用Android Studio运行我的Android应用,Instant Run功能启动,这非常好。我想从命令行运行完全相同的内容。
在Android Studio的事件日志中,我看到
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.
因此,我期望能够从命令行运行该任务:./gradlew :app:incrementalDevDebugSupportDex
。然而,它未被找到:
FAILURE: Build failed with an exception.
* What went wrong:
Task 'incrementalDevDebugSupportDex' not found in project ':app'.
有没有一种方法可以从命令行运行Instant Run?