title: android studio the '-d' option with a directory destination is ignored because '-Xbuild-file' is specified
body: <p>I am new to android development and just created my first "hello world" project in android studio 3.2 ( canary ) following this tutorial. <a href="https://developer.android.com/jetpack/docs/getting-started" rel="nofollow noreferrer">https://developer.android.com/jetpack/docs/getting-started</a></p>
  
  <p>and then I just did Build- > make project project tried to build and gave me following error.</p>
  
  <blockquote>
    <p>Could not get unknown property 'archLifecycleVersion' for root project 'JetpackHelloWorld' of type org.gradle.api.Project.</p>
  </blockquote>
  
  <p>but I was able to solve that error with help of answers on a question I posted. 
  <a href="https://stackoverflow.com/questions/50329891/android-jetpack-project-gives-archlifecycleversion-build-error">android jetpack project gives archlifecycleversion build error</a></p>
  
  <p>after that error was solved I tried to build again and now I have the following error.</p>
  
  <blockquote>
    <p>the '-d' option with a directory destination is ignored because '-Xbuild-file' is specified</p>
  </blockquote>
  
  <p><strong>Update</strong></p>
  
  <p><strong>Build.gradle</strong> (app folder level )</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  apply plugin: 'kotlin-android'
  
  apply plugin: 'kotlin-android-extensions'
  
  android {
      compileSdkVersion 27
      defaultConfig {
          applicationId "com.example.touseef.jetpackhelloworld"
          minSdkVersion 17
          targetSdkVersion 27
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
      implementation 'com.android.support:appcompat-v7:27.1.1'
      implementation 'com.android.support.constraint:constraint-layout:1.1.0'
      implementation 'android.arch.lifecycle:extensions:1.1.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'
  }
  </code></pre>
  
  <p><strong>build.gradle</strong> (project level)</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
  ext.kotlin_version = '1.2.41'
  repositories {
      google()
      jcenter()
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:3.2.0-alpha14'
      classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  
      // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p><strong>Run is disabled</strong></p>
  
  <p>as you can see in the screenshot, run option of the app is disabled and it asks me to edit configuration if I click on the drop down, what kind of configurations I am supposed to do in a empty project? </p>
  
  <p><a href="https://i.stack.imgur.com/Q1f7i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q1f7i.png" alt="run disabled"></a></p>