title: Error while importing android project ("Gradle location is incorrect" or "Cause: unexpected end of block data")
body: <p>I want to import Android project in Android Studio and this is where the problem begins:
  1) If I set Gradle home and click OK, I get the info: 
  <img src="https://i.stack.imgur.com/IOGzN.png" alt="enter image description here"></p>
  
  <p>2) And secondly, if I try to run project I get the message:
  <img src="https://i.stack.imgur.com/wR6cd.png" alt="enter image description here"> </p>
  
  <p>Trying both ways result in displaying messages above.
  I have GRADLE_HOME, JAVA_HOME set correctly and ANDROID_HOME points to "sdk" directory in android-studio directory.
  Much appreciation for answer with the solution.</p>