Error: Failed to find target with hash string 'android-28'

error: failed to find target with hash string 'android-28'
error: failed to find target with hash string 'android-23'
error failed to find target with hash string 'android-27
error failed to find target with hash string 'android-26' in
error failed to find target with hash string android 23 in c users dell appdata local android sdk
gradle sync failed: failed to find target with hash string 'android-28'
error failed to find target with hash string zebra technologies corp emdk apis 26
failed to find target with hash string 'android-23' react native

When I sync my project in build.gradle(Project: Allo) I see this error

Failed to find target with hash string 'android-28'in: C:\Users\hacker\AppData\Local\Android\Sdk

Config:

apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 28
defaultConfig {
    applicationId "com.example.android.allo"
    minSdkVersion 19
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0 rc2'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.android.support:design:28.0.0 rc2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


Failed to find target with hash string 'android-25', I am trying to open a project, but I get the error "Failed to find target with hash string 'android-25'". Below the error message I see a link "Install  Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Learn more failed to find target with hash string android-23


Replace these two dependencies

implementation 'com.android.support:appcompat-v7:28.0.0 rc2'

implementation 'com.android.support:design:28.0.0 rc2'

with these

implementation 'com.android.support:design:28.0.0-rc01'

implementation 'com.android.support:appcompat-v7:28.0.0-rc01'

[Solved] How to Fix Failed to find target with hash string 'android , The error is: `Failed to find target with hash string 'android-28' in: C:\Users\<​username>\AppData\Local\Android\Sdk` This is part of the log that  rahamin1 changed the title Failed to find target with hash string 'android-28' in Android\Sdk (on Windows 10) Failed to find target with hash string 'android-28' in Android\Sdk Sep 14, 2019 This comment has been minimized.


I got the error "Failed to find target with hash string 'android-28'", None of the solutions above solved my issue.

Here's what caused my problem:

in the project gradle.build I added a user defined extension key value as such:

ext {
    ANDROID_COMPILE_SDK_VERSION=28
}

Then in the module gradle.build I then referenced this value as such:

android {
   compileSdkVersion rootProject.ext.ANDROID_COMPILE_SDK_VERSION
   ...

That's what causes the error!! What I did to correct the issue was to code it this way:

android {
  compileSdkVersion Integer.valueOf(rootProject.ext.ANDROID_COMPILE_SDK_VERSION)

In other words, compileSdkVerion wants an interger, not a string. The same it true with minSdkVerion, targetSdkVersion and versionCode in your gradle script.

I don't know if that's the problem that the above posters were experiencing, but that at least one way in which that error message can occur. And by the way, I could use support libraries 28.0.0

(on Windows 10) Failed to find target with hash string 'android-28' in , Any idea why I get this error in android studio when gradle build runs with your  Syed-Shahrukh-Hussain changed the title Error:failed to find target with hash string 'android-23' Install missing platform(s) and sync project</a> Error:failed to find target with hash string 'android-23' Install missing platform(s) and sync project.</a> Jul 30, 2018


Failed to find target with hash string android-p install missing , error: A problem occurred configuring project ':react-native-localization'. failed to find target with hash string 'android-25' in: /opt/android/sdk. Hi, I have already installed API 23 Created my environment as per instructions for React Native Android on Windows but when running react-native run-android I get the following failed to find target with hash string 'android-23' in: C:\U


How to resolve failed to find target with hash string 'android-25 , It gives below error :- failed to find target with hash string 'android-23'. How can i add another folder of "android-23" in Android "platforms" folder  Gradle: Execution failed for task ':AppName:compileDebugAidl'. > failed to find target android-18. although I have installed the SDK platform of Android 4.3 (API 18) and I tried to reinstall all the SDK. I've also added the ANDROID_HOME variable in the system variables. What seems to be the source of this error?


failed to find target with hash string 'android-23, FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring project ':app'. Failed to find target with hash string 'android-26' in:  Android Studio 3 - Fixing New Project Errors - Failed to find target with hash string 'android-26' - Duration: 4:18. Funnel Garden 6,329 views