title: Gradle sync failed: Could not find method leftShift() for arguments on task ':cdvPrintProps'
body: <p>I'm trying to build an APK from a cordova project using Android Studio 3.4.2.
  When I open the android project I have this error:</p>
  
  <blockquote>
    <p>Gradle sync failed: Could not find method leftShift() for arguments [build_2k0coljhzjx4l5ohcvglm58rl$_run_closure5@420a76b7] on task ':cdvPrintProps' of type org.gradle.api.DefaultTask.
                Consult IDE log for more details (Help | Show Log) (976 ms)</p>
  </blockquote>
  
  <p>When I open the file where the error is, I see this:</p>
  
  <pre><code>task cdvPrintProps &lt;&lt; {
      println('cdvCompileSdkVersion=' + cdvCompileSdkVersion)
      println('cdvBuildToolsVersion=' + cdvBuildToolsVersion)
      println('cdvVersionCode=' + cdvVersionCode)
      println('cdvMinSdkVersion=' + cdvMinSdkVersion)
      println('cdvBuildMultipleApks=' + cdvBuildMultipleApks)
      println('cdvReleaseSigningPropertiesFile=' + cdvReleaseSigningPropertiesFile)
      println('cdvDebugSigningPropertiesFile=' + cdvDebugSigningPropertiesFile)
      println('cdvBuildArch=' + cdvBuildArch)
      println('computedVersionCode=' + android.defaultConfig.versionCode)
      android.productFlavors.each { flavor -&gt;
          println('computed' + flavor.name.capitalize() + 'VersionCode=' + flavor.versionCode)
      }
  }
  </code></pre>
  
  <p>I've read that I should change <em>&lt;&lt;</em> by <em>doLast{}</em>, but if I type:</p>
  
  <pre><code>task cdvPrintProps { doLast {
      println('cdvCompileSdkVersion=' + cdvCompileSdkVersion)
      println('cdvBuildToolsVersion=' + cdvBuildToolsVersion)
      println('cdvVersionCode=' + cdvVersionCode)
      println('cdvMinSdkVersion=' + cdvMinSdkVersion)
      println('cdvBuildMultipleApks=' + cdvBuildMultipleApks)
      println('cdvReleaseSigningPropertiesFile=' + cdvReleaseSigningPropertiesFile)
      println('cdvDebugSigningPropertiesFile=' + cdvDebugSigningPropertiesFile)
      println('cdvBuildArch=' + cdvBuildArch)
      println('computedVersionCode=' + android.defaultConfig.versionCode)
      android.productFlavors.each { flavor -&gt;
          println('computed' + flavor.name.capitalize() + 'VersionCode=' + flavor.versionCode)
      }}}
  </code></pre>
  
  <p>Then I get this other error:</p>
  
  <blockquote>
    <p>Gradle sync failed: Cause: org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V
                Consult IDE log for more details (Help | Show Log) (1 s 10 ms)</p>
  </blockquote>
  
  <p>Do you know how can I skip this and have a correct gradle sync?</p>
  
  <p>Thanks in advance!</p>