Repository: flutter
Issue: gradlew assembleDebug - Failed to run the Flutter compiler. Exit code: 255
Labels: tool,platform-windows,P3,team-tool,triaged-tool

## Steps to Reproduce

Using Flutter tools from the command line. 
Channel - beta.

While running a project.

```
[   +9 ms] Running 'gradlew assembleDebug'...
[   +5 ms] [android\] D:\Studio\Flutter\proj\android\gradlew.bat -Ptarget=D:\Studio\Flutter\proj\lib/main.dart assembleDebug
[+4227 ms] :app:preBuild UP-TO-DATE
[  +70 ms] :app:preDebugBuild UP-TO-DATE
[  +10 ms] :app:compileDebugAidl UP-TO-DATE
[   +7 ms] :app:compileDebugRenderscript UP-TO-DATE
[  +18 ms] :app:flutterBuildX86Jar UP-TO-DATE
[   +7 ms] :app:checkDebugManifest UP-TO-DATE
[   +6 ms] :app:generateDebugBuildConfig UP-TO-DATE
[   +2 ms] :app:prepareLintJar UP-TO-DATE
[   +2 ms] :app:cleanMergeDebugAssets UP-TO-DATE
[+1564 ms] Failed to open: C:\WINDOWS\System32\flutter\bin\cache\artifacts\engine\windows-x64\vm_isolate_snapshot.bin
[  +52 ms] Failed to run the Flutter compiler. Exit code: 255
[  +15 ms] :app:flutterDependenciesDebug FAILED
[   +8 ms] FAILURE: Build failed with an exception.
[  +11 ms] * Where:
[   +1 ms] Script 'C:\WINDOWS\System32\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 421
[   +3 ms] * What went wrong:
[   +2 ms] Execution failed for task ':app:flutterDependenciesDebug'.
[   +3 ms] > Process 'command 'C:\WINDOWS\System32\flutter\bin\flutter.bat'' finished with non-zero exit value 255
[   +7 ms] * Try:
[   +1 ms] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[   +6 ms] * Get more help at https://help.gradle.org
[   +2 ms] BUILD FAILED in 5s
[  +11 ms] 9 actionable tasks: 1 executed, 8 up-to-date
[ +396 ms] "flutter run" took 14,063ms.
```

## Logs

```
Launching lib/main.dart on YU5010A in debug mode...
Initializing gradle...                                1.2s
Resolving dependencies...                             4.0s
Running 'gradlew assembleDebug'...
Failed to open: C:\WINDOWS\System32\flutter\bin\cache\artifacts\engine\windows-x64\vm_isolate_snapshot.bin
Failed to run the Flutter compiler. Exit code: 255

FAILURE: Build failed with an exception.

* Where:
Script 'C:\WINDOWS\System32\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 421

* What went wrong:
Execution failed for task ':app:flutterDependenciesDebug'.
> Process 'command 'C:\WINDOWS\System32\flutter\bin\flutter.bat'' finished with non-zero exit value 255

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
Gradle build failed: 1
```

```
Analyzing D:\Studio\Flutter\proj...
No issues found!
Ran in 8.8s
```

## Flutter Doctor

```
[√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.10586], locale en-IN)
    • Flutter version 0.1.5 at C:\WINDOWS\System32\flutter
    • Framework revision 3ea4d06340 (6 days ago), 2018-02-22 11:12:39 -0800
    • Engine revision ead227f118
    • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at D:\SDK
    • Android NDK at D:\SDK\ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = D:\SDK
    • Java binary at: D:\Studio\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] Android Studio (version 3.0)
    • Android Studio at D:\Studio\android-studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[!] IntelliJ IDEA Community Edition (version 2017.3)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[√] VS Code (version 1.20.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Dart Code extension version 2.9.2

[√] Connected devices (1 available)
    • YU5010A • b275d0c9 • android-arm • Android 5.1.1 (API 22)

! Doctor found issues in 1 category.
```

Project never runs. Even tried removing the cache dir and re-downloading the setup, changing channel to master and upgrading the dependencies. Thanks!