无法使用哈希字符串' 27.0.3'找到目标Android Studio 3.1.3

时间:2018-06-08 20:43:41

标签: android android-studio gradle android-gradle build.gradle

更新android studio后,我面临Failed to find target with hash string '27.0.3' in: /Users/duggu/Library/Android/sdk

摇篮

enter image description here

SDK Manager

SDK平台

enter image description here

SDK工具

enter image description here

SDK文件夹如下所示

enter image description here

enter image description here

我尝试了很多链接,但还没有实现我的目标: -

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'

1 个答案:

答案 0 :(得分:0)

我的错误如下

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

这是复制引起的错误,请按照以下说明纠正

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

compileSdk版本是android版本,而不是buildtools版本。