anchor.diff:        '--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');
  
positive.code: 
      final String testName = '${template}_test';
  
      processManager.runSync(<String>[
        flutterBin,
        ...getLocalEngineArguments(),
        'create',
  
negative.code:     buildGradleFile.writeAsStringSync(newBuildGradle);
  
      // Run flutter build apk using AGP 4.1.0
      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,
  