title: intellij IDEA - create android app failed
body: <p>When I'm trying to create android application in intellij idea I get the following</p>
  
  <pre><code>The project wasn't generated by 'android' tool
  
  : can't find sdkmanager.jar
  /Users/timon/development/android-sdk-mac_x86/tools/android: line 30: dirname: command not found
  /Users/timon/development/android-sdk-mac_x86/tools/android: line 33: basename: command not found
  /Users/timon/development/android-sdk-mac_x86/tools/android: line 40: dirname: command not found
  /Users/timon/development/android-sdk-mac_x86/tools/android: line 44: dirname: command not found
  /Users/timon/development/android-sdk-mac_x86/tools/android: line 48: basename: command not found
  </code></pre>
  
  <p>showing the window:</p>
  
  <p><img src="https://i.stack.imgur.com/92h4y.png" alt="error"></p>
  
  <p>I tried to set up PATH variables locating android SDK but it doesn't help. Android SDK is installed correctly and I can create and run android projects in Eclipse. What am I doing wrong? It seems like very common error. Please help!</p>