duggu
duggu

Reputation: 38439

Failed to find target with hash string '27.0.3' Android Studio 3.1.3

After updating android studio I am facing Failed to find target with hash string '27.0.3' in: /Users/duggu/Library/Android/sdk.

Gradle

enter image description here

SDK Manager

SDK Platforms

enter image description here

SDK Tools

enter image description here

SDK folder look like below

enter image description here

enter image description here

I tried so many links but didn't not achieve my goal yet :-

failed to find target with hash string android-23

Cause: failed to find target with hash string 'android-N'

Cause: failed to find target with hash string 'N'

Cause: failed to find target with hash string 'android-N'

Upvotes: 0

Views: 185

Answers (1)

zen
zen

Reputation: 1

My mistake is as follows

compileSdkVersion rootProject.ext.buildToolsVersion
buildToolsVersion rootProject.ext.buildToolsVersion

This is a Copy caused error, Correct as follows

compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

The compileSdk version is the android version, not the buildtools version.

Upvotes: 0

Related Questions