Changing compileSdkVersion in Android Studio Is Giving an Error
<p>I'm testing an app in Android Studio for which I need to use <code>compileSdkVersion</code> lower than 23, but the current version of <code>compileSdkVersion</code> in Android Studio is 23 by default. I downloaded and installed <code>Android SDK build-tools</code> revision 22 and changed it in<code>build.gradle</code> as follows:</p>

<pre><code>android {
compileSdkVersion 22
buildToolsVersion "23.0.1"
</code></pre>

<p>but I'm getting this error:</p>

<pre><code>cause: failed to find target with hash string 'android-22'
</code></pre>

<p>I've looked at a few similar questions but none helped me with this.</p>

<p>What should I do?</p>