title: Android Gradle project sync failed due to target version
body: <p>Since a new <strong>API of Android 6.0</strong> is available in SDK Manager a hint was appeared in application level build.gradle file to update </p>
  
  <p>FROM</p>
  
  <pre><code>androidTestCompile 'com.android.support:support-annotations:22.0.1'
  compile 'com.android.support:appcompat-v7:22.0.1'
  </code></pre>
  
  <p>TO</p>
  
  <pre><code>androidTestCompile 'com.android.support:support-annotations:23.0.0'
      compile 'com.android.support:appcompat-v7:23.0.0'
  </code></pre>
  
  <p>I haven't downloaded new update from sdk manager for Android 6(API 23) yet but still changed the following details as shown below,</p>
  
  <p><strong>BEFORE</strong></p>
  
  <pre><code>compileSdkVersion 22
  buildToolsVersion "22.0.1"
  targetSdkVersion 22
  androidTestCompile 'com.android.support:support-annotations:22.0.1'
  compile 'com.android.support:appcompat-v7:22.0.1'
  </code></pre>
  
  <p><strong>AFTER</strong></p>
  
  <pre><code>    compileSdkVersion 23
      buildToolsVersion "23.0.0"
      targetSdkVersion 23
      androidTestCompile 'com.android.support:support-annotations:23.0.0'
      compile 'com.android.support:appcompat-v7:23.0.0'
  </code></pre>
  
  <p>As I haven't downloaded new API 6.0 yet, following error occurred</p>
  
  <pre><code>Error:Cause: failed to find target with hash string 'android-23' in: C:\Users\DRONE\AppData\Local\Android\sdk
  </code></pre>
  
  <p>So now again I changed the setting in application level build.gradle file as what it was before, but the error is not being resolved.
  Same error is occurring.</p>
  
  <p>How do I solve this now?</p>