title: Task not found in project
body: <p>I'm having an issue relatively to gradle which I don't know how to solve it...</p>
  
  <p>If I put this command on my terminal : <code>gradle --scan :&lt;module A&gt;:debugCompileClasspath</code></p>
  
  <p>This is what it shows me :</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring root project '&lt;root_project_file&gt;'.
  &gt; Could not resolve all files for configuration ':classpath'.
  &gt; Could not find gradle-core.jar (com.android.tools.build:gradle-core:3.1.2).
   Searched in the following locations:
       https://plugins.gradle.org/m2/com/android/tools/build/gradle-core/3.1.2/gradle-core-3.1.2.jar
  &gt; Could not find layoutlib-api.jar (com.android.tools.layoutlib:layoutlib-api:26.1.2).
   Searched in the following locations:
       https://plugins.gradle.org/m2/com/android/tools/layoutlib/layoutlib-api/26.1.2/layoutlib-api-26.1.2.jar
  </code></pre>
  
  <p>How can I solve this ?</p>
  
  <p>P.S: My Gradle Android plugin is <code>3.1.2</code> and gradle version : <code>distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip</code></p>
  
  <p>P.S.2 : Clearing the cache of gradle, now disappears those errors but i have this problem now ... <code>Task 'debugCompileClasspath' not found in project ':&lt;Module_porject&gt;'.</code></p>