title: Gradle code broken after updating to gradle 6.x variant.getVariantData().getVariantConfiguration() not working
body: <p>I defined manifest placeholders for different variants using following code.</p>
  <pre><code>android.applicationVariants.all { variant -&gt;
  //        def names = variant.getVariantData().getVariantConfiguration().getFlavorName()
      def mergedFlv = variant.getVariantData().getVariantConfiguration().getMergedFlavor()
  
      mergedFlv.manifestPlaceholders = [pl1: mergedFlv.getApplicationId() + mergedFlv.getApplicationIdSuffix()]
  </code></pre>
  <p>It was working well. But I updated to the latest version of Android Studio a week ago and also updated gradle version for this project when Android Studio prompted and the Android Studio throws following error.</p>
  <pre><code>No signature of method: com.android.build.gradle.internal.variant.ApplicationVariantData.getVariantConfiguration() is applicable for argument types: () values: []
  </code></pre>
  <p>How do I fix this?</p>
  <p><strong>Update</strong></p>
  <p>I found this class at <a href="https://android.googlesource.com/platform/tools/build/+/0d498ccf6f91a12c036b382b7ae2b1a809eb2b9d/gradle/src/main/groovy/com/android/build/gradle/internal/variant/ApplicationVariantData.java" rel="nofollow noreferrer">https://android.googlesource.com/platform/tools/build/+/0d498ccf6f91a12c036b382b7ae2b1a809eb2b9d/gradle/src/main/groovy/com/android/build/gradle/internal/variant/ApplicationVariantData.java</a></p>
  <p>It does not have <code>getVariantConfiguration()</code> method. But it is extending <code>ApkVariantData</code> class which in turn is extending <code>BaseVariantData</code>. <code>BaseVariantData</code> has this public method <code>getVariantConfiguration()</code></p>
  <p>Thus it should be accessible. I closed and reopened project as well as android studio and tried building project again too... Doesn't seem to work.</p>
  <p>Any help please</p>