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.
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
How to Monitor Sim State Change
How Get Permission for Camera in Android.(Specifically Marshmallow)
How to Replicate Android:Editable="False" in Code
How to Save Images into Database
What Is the Use of Movetofirst () in SQLite Cursors
Get File Path of Image on Android
Gradle 7 and Jitpack.Io Runs into Error During Publish
Stop Asynctask Doinbackground Method
Getting Data from Android Play Store
How to Display More Than 3- Levels of Expandable List View
Horizontalscrollview: Auto-Scroll to End When New Views Are Added
How to Check If "Android.Permission.Package_Usage_Stats" Permission Is Given
Firebase Ontokenrefresh() Is Not Called
Android Listview Row Delete Animation
How to Use the Gradle Build System for Android with Eclipse