Failed to Find Target with Hash String 'Android-22'

failed to find target with hash string 'android-22'

Just click on the link written in the error:

Open Android SDK Manager

and it will show you the dialogs that will help you to install the required sdk for your project.

Failed to find target with hash string 'android-25'

You don't need to update anything. Just download the SDK for API 25 from Android SDK Manager or by launching Android standalone SDK manager. The error is for missing platform and not for missing tool.Android SDK Manager Android Studio 2.2.2

Failed to find target with hash string 'android-Q'

With the release of Android Q Beta 4 and Final APIs!, Android Q is now officially API 29. Therefore you should not use 'android-Q' or 'Q' in your build.gradle file, but instead just use 29:

compileSdkVersion 29
buildToolsVersion "25.0.0"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "vn.minh.android.store"
minSdkVersion 14
targetSdkVersion 29

Note that as per that same blog post linked above:

To get started, download the official API 29 SDK and tools into the stable release of Android Studio 3.4, or for the latest Android Q support update to Android Studio 3.5 Beta.

Using Android Studio 3.2 (and really, anything but the latest stable version of Studio or newer) generally means that you will not have the expected tooling that the latest SDKs, build tools, and emulators require to provide a fully functional environment.

failed to find target with hash string android-23

In my case, clearing caché didn't work.

On SDK Manager, be sure to check the box on "show package descriptions"; then you should also select the "Google APIs" for the version you are willing to install.

Install it and then you should be ok

Error: failed to find target with hash string 'android-14' in:Open Android SDK Manager

Facing the same issue, I have found atribute "compileSkdVersion" which holds the reference to v.14 in proguard.cfg (Graddle Scripts, assuming you are using Android Studio 1.4).

Changed to "23" (latest today version), error went gone.

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.example.android.lifecycle"
minSdkVersion 7
targetSdkVersion 15
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}


Related Topics



Leave a reply



Submit