anchor.diff:    // from the local.properties file.
     await updateLocalProperties(project: project, buildInfo: buildInfo);
   
  -  final String gradle = await _ensureGradle();
  -
  -  switch (flutterPluginVersion) {
  +  final String gradle = await _ensureGradle(project);
  +
  +  switch (getFlutterPluginVersion(project.android)) {
       case FlutterPluginVersion.none:
         // Fall through. Pretend it's v1, and just go for it.
       case FlutterPluginVersion.v1:
  
positive.code: 
  /// Returns the apk file created by [buildGradleProject]
  Future<File> getGradleAppOut(AndroidProject androidProject) async {
    switch (flutterPluginVersion) {
      case FlutterPluginVersion.none:
        // Fall through. Pretend we're v1, and just go with it.
      case FlutterPluginVersion.v1:
  
negative.code:     case FlutterPluginVersion.managed:
        // Fall through. Managed plugin builds the same way as plugin v2.
      case FlutterPluginVersion.v2:
        return _buildGradleProjectV2(project, gradle, buildInfo, target);
    }
  }
  
  