【发布时间】:2016-06-17 16:01:16
【问题描述】:
我正在从 Android Studio 运行我的 Android 应用,Instant Run 启动了,这很棒。我想从命令行运行完全相同的东西。
在 Android Studio 的 Event Log 中,我看到了
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 运行?
【问题讨论】:
标签: android android-gradle-plugin instant-run