title: Declaring custom 'clean' task when using the standard Gradle lifecycle plugins is not allowed
body: <p>I am building a kotlin android project. When i configure kotlin in android studio, i get this error in the gradle file.</p>
  
  <pre><code>Declaring custom 'clean' task when using the standard Gradle lifecycle plugins is not allowed
  </code></pre>
  
  <p>This question has been asked <a href="https://stackoverflow.com/questions/43933459/declaring-custom-clean-task-when-using-the-standard-gradle-lifecycle-plugins-i">here</a> but no help still. What might be the issue?</p>