anchor.diff:      buildGradleFile.writeAsStringSync(newBuildGradle);
   
       // Run flutter build apk using AGP 4.1.0
  -    processManager.runSync(<String>[
  +    result = processManager.runSync(<String>[
         flutterBin,
         ...getLocalEngineArguments(),
         'build',
         'apk',
         '--target-platform=android-arm',
       ], workingDirectory: exampleAppDir.path);
  +    if (result.exitCode != 0) {
  +      throw Exception('flutter build failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}');
  +    }
   
       final File exampleApk = fileSystem.file(fileSystem.path.join(
         exampleAppDir.path,
  
positive.code: 
  import 'package:file_testing/file_testing.dart';
  import 'package:flutter_tools/src/base/file_system.dart';
  
  import '../src/common.dart';
  import 'test_utils.dart';
  
negative.code:       '--platforms=android',
        testName,
      ], workingDirectory: tempDir.path);
      if (result.exitCode != 0) {
        throw Exception('flutter create failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}');
      }
  
      final Directory exampleAppDir =
          tempDir.childDirectory(testName).childDirectory('example');
  