title: TeamCity, Android, Gradle Script failure
body: <p>I have been struggling to get TeamCity to build my Android Project. I have finally gotten the server to be able to compile the project with Gradlew (although I have to ignore lint errors, which I am not happy about - it will not tell me which lint errors are being violated <strong>EDIT</strong>: <em>I found it in ..\build\outputs\lint-results.html</em>)</p>
  
  <p>But now I can see that it is trying to execute the following:</p>
  
  <pre><code>C:\TeamCity\buildAgent\work\284714bad9f1a533\MyProject&gt;gradlew.bat --init-script C:\TeamCity\buildAgent\plugins\gradle-runner\scripts\init.gradle clean build
  </code></pre>
  
  <p>And I am getting the following error:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * Where:
  Initialization script 'C:\TeamCity\buildAgent\plugins\gradlerunner\scripts\init.gradle' line: 31
  
  * What went wrong:
  A problem occurred evaluating initialization script.
  &gt; Cannot invoke method split() on null object
  </code></pre>
  
  <p>I have checked this line and it seems fairly standard: </p>
  
  <pre><code>initscript {
      dependencies {
          def teamCityInitLib = System.getenv("TEAMCITY_BUILD_INIT_PATH")
          println "Init lib: ${teamCityInitLib}"
          def classPathFiles = teamCityInitLib.split(File.pathSeparator) //line 31
          classpath files(classPathFiles)
      }
  }
  </code></pre>
  
  <p>Can anyone help me? NOTE: the following command works without a problem:</p>
  
  <pre><code>gradlew.bat clean build
  </code></pre>