anchor.diff:  
   String javaHome;
   
  -void main() {
  -  task(() async {
  +void main() async {
  +  await task(() async {
       section('Running flutter doctor to get JAVA_HOME');
       final String flutterDoctor = await evalFlutter('doctor', options: <String>['-v']);
       final RegExp javaHomeExtractor = new RegExp(r'Android Studio at (.*)');
  
positive.code:   String get exampleAndroidPath => path.join(examplePath, 'android');
    String get debugApkPath => path.join(examplePath, 'build', 'app', 'outputs', 'apk', 'debug', 'app-debug.apk');
  
    Future<Null> runGradleTask(String task) async {
      return _runGradleTask(workingDirectory: exampleAndroidPath, task: task);
    }
  
    bool get hasDebugApk => new File(debugApkPath).existsSync();
  }
  
  Future<Null> _runGradleTask({String workingDirectory, String task}) async {
    final ProcessResult result = await _resultOfGradleTask(workingDirectory: workingDirectory, task: task);
    if (result.exitCode != 0) {
      print('stdout:');
      print(result.stdout);
  
negative.code:     try {
        section('gradlew assembleDebug');
        await project.runGradleTask('assembleDebug');
  
        String errorMessage = _validateSnapshotDependency(project,
            '${project.rootPath}/build/app/intermediates/flutter/debug/snapshot_blob.bin');
        if (errorMessage != null) {
          return new TaskResult.failure(errorMessage);
        }
  
        section('gradlew assembleDebug preview-dart-2');
        await project.runGradleTask('assembleDebug', options: <String>['-Ppreview-dart-2=true']);
  
        errorMessage = _validateSnapshotDependency(project, 'build/app.dill');
        if (errorMessage != null) {
          return new TaskResult.failure(errorMessage);
        }
  
        section('gradlew assembleProfile');
        await project.runGradleTask('assembleProfile');
  