title: can't sync gradle from android studio, but works from console
body: <p>I have problem building syncing gradle files with project in android studio. 
  I have multi project solution. 
  I use 'com.android.tools.build:gradle:1.0.1', and gradle wrapper version 2.2.1
  When I click sync button it say's: </p>
  
  <p>Gradle 'gitrepo' project refresh failed</p>
  
  <p>Error:exception during working with external system: </p>
  
  <p>call stack from idea.log: <a href="http://pastebin.com/WDh6FUc4" rel="nofollow">http://pastebin.com/WDh6FUc4</a></p>
  
  <p>I've tried cleaning project, invalidate cache, restart computer, remove .gradle folder. </p>
  
  <p>I've also found out that when I run gradlew and gradlew build it works normally, so I assume that build.gradle files are OK. </p>
  
  <p>Thanks for help!</p>