anchor.diff:    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);
  +  Future<Null> runGradleTask(String task, {List<String> options}) async {
  +    return _runGradleTask(workingDirectory: exampleAndroidPath, task: task, options: options);
     }
   
     bool get hasDebugApk => new File(debugApkPath).existsSync();
   }
   
  -Future<Null> _runGradleTask({String workingDirectory, String task}) async {
  -  final ProcessResult result = await _resultOfGradleTask(workingDirectory: workingDirectory, task: task);
  +Future<Null> _runGradleTask({String workingDirectory, String task, List<String> options}) async {
  +  final ProcessResult result = await _resultOfGradleTask(
  +      workingDirectory: workingDirectory,
  +      task: task,
  +      options: options);
     if (result.exitCode != 0) {
       print('stdout:');
       print(result.stdout);
  
positive.code:     throw 'Gradle exited with error';
  }
  
  Future<ProcessResult> _resultOfGradleTask({String workingDirectory, String task}) {
    return Process.run(
      './gradlew',
      <String>['app:$task'],
      workingDirectory: workingDirectory,
      environment: <String, String>{ 'JAVA_HOME': javaHome }
    );
  }
  
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');
  