title: Cannot create variant 'android-manifest-metadata'
body: <p>I uploaded my app on Playstore (bundle.aab method) and it works fine with no errors on android 6.0 but got error on android 7.0 device and doens't run the app. I used the Gradle build classpath 3.1.0 - Trying to solve the problem by updating the Gradle version build to 3.2.0-alpha14' so the compile failed giving me the error message bellow. Does anyone know how may I fix this to make my app run on Android 7.0 devices with Gradle 4.7? Perhaps this upgrade fix the device error I think. Thank you!</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  
  repositories {
      mavenLocal()
      maven {
          url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
      }
  }
  
  android {
      signingConfigs {
      config {
          keyAlias 'key1'
          keyPassword '*****'
          storeFile file('C:/Users/marco/.android/debug.keystore')
          storePassword 'android'
      }
  }
  compileSdkVersion 27
  buildToolsVersion '27.0.3'
      defaultConfig {
          multiDexEnabled true
          applicationId "net.panomaps"
          minSdkVersion 21
          targetSdkVersion 27
          versionCode 63
          versionName "5.3.3"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      javaCompileOptions {
              annotationProcessorOptions {
              includeCompileClasspath true
              }
          }
          vectorDrawables.useSupportLibrary = true
      }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          signingConfig signingConfigs.config
      }
      debug {
          signingConfig signingConfigs.config
      }
  }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  }
  
      dependencies {
          implementation fileTree(include: ['*.jar'], dir: 'libs')
          implementation 'com.android.support:appcompat-v7:27.1.1'
          implementation 'com.android.support:design:27.1.1'
          implementation 'com.android.support.constraint:constraint-layout:1.1.0'
          implementation 'com.android.support:support-vector-drawable:27.1.1'
          implementation 'com.google.android.gms:play-services-auth:15.0.1'
          testImplementation 'junit:junit:4.12'
          androidTestImplementation 'com.android.support.test:runner:1.0.2'
          androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
          implementation 'com.google.firebase:firebase-core:15.0.2'
          implementation 'com.google.firebase:firebase-appindexing:15.0.1'
          implementation 'com.google.firebase:firebase-config:15.0.2'
          implementation 'com.google.firebase:firebase-invites:15.0.1'
          implementation 'pub.devrel:easypermissions:1.1.2'
          implementation 'com.google.firebase:firebase-messaging:15.0.2'
          implementation 'org.xwalk:xwalk_core_library:23.53.589.4'
          implementation 'com.squareup.picasso:picasso:2.5.2'
          implementation 'com.firebaseui:firebase-ui-auth:3.1.3'
          implementation 'com.firebaseui:firebase-ui:3.1.3'
          implementation 'com.google.firebase:firebase-auth:15.1.0'
          implementation 'com.google.firebase:firebase-database:15.0.1'
  
          implementation 'com.github.Q42:AndroidScrollingImageView:1.3.2'
  
          implementation 'com.android.support:multidex:1.0.3'
      }
  
  apply plugin: 'com.google.gms.google-services'
  
  
      // error message -&gt; Cannot create variant 'android-manifest-metadata' after configuration ':app:debugApiElements' has been resolved
  </code></pre>
  
  <p>Gradle <em>distributionUrl=https://services.gradle.org/distributions/gradle-4.7-all.zip</em></p>
  
  <pre><code>dependencies {
      classpath 'com.android.tools.build:gradle:3.2.0-alpha14'
      classpath 'com.google.gms:google-services:3.3.0'
      }
  }
  </code></pre>
  
  <p>error message -> Cannot create variant 'android-manifest-metadata' after configuration ':app:debugApiElements' has been resolved</p>