[英]Error: failed to find target with hash string 'android-22'
當我打開它時,我已經從互聯網上下載了一個Android Studio應用程序,但出現如下圖所示的錯誤,我該如何解決此問題,請幫幫我
[![apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.lcp.lcptransportation"
minSdkVersion 14
targetSdkVersion 22
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:22.2.1'
compile 'com.google.code.gson:gson:2.2.3'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:cardview-v7:+'
compile files('libs/commons-io-2.4.jar')
}][1]][1]
這是構建工具的錯誤,聽說您設置了構建工具22,但是我認為它不會安裝在您的SDK中,因此請先進入您的SDK管理器並安裝構建工具,否則請在出錯后單擊鏈接。 這可能是解決您的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.