title: Gradle sync failed: Cause: failed to find target with hash string 'android-22'
body: <p>I tried numerous links, many answers like <a href="https://stackoverflow.com/questions/32715418/failed-to-find-target-with-hash-string-android-22">this</a>. It just doesn't work. I have the android sdk build tools installed for the <code>22.0.1</code> but it still gives me the same error. Where have I gone wrong?</p>
  
  <blockquote>
    <p><a href="https://i.stack.imgur.com/40JWb.png" rel="nofollow"><img src="https://i.stack.imgur.com/40JWb.png" alt="enter image description here"></a></p>
  </blockquote>
  
  <p>I seem to be getting this error as well in the gradle settings,</p>
  
  <blockquote>
    <p><a href="https://i.stack.imgur.com/00Pqh.png" rel="nofollow"><img src="https://i.stack.imgur.com/00Pqh.png" alt="what and where should be the jdk?"></a></p>
  </blockquote>
  
  <p>Any kind of advice is appreciated. </p>