I'm testing an app in Android Studio for which I need to use compileSdkVersion
lower than 23, but the current version of compileSdkVersion
in Android Studio is 23 by default. I downloaded and installed Android SDK build-tools
revision 22 and changed it inbuild.gradle
as follows:
android {
compileSdkVersion 22
buildToolsVersion "23.0.1"
but I'm getting this error:
cause: failed to find target with hash string 'android-22'
I've looked at a few similar questions but none helped me with this.
What should I do?