我在我的電腦上安裝了Android Studio。我創建了一個新項目,但是這給我下面的錯誤。我能做什麼?任務執行失敗':app:compileDebugAidl':aidl缺失
Error:Execution failed for task ':app:compileDebugAidl'.
> aidl is missing
我的Android Studio版本是1.1.0
。
這是我build.gradle
文件:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
和:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "24.1.2"
defaultConfig {
applicationId "com.example.jo.cloning_a_login_screen"
minSdkVersion 13
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'
}
你有沒有發現這個問題的解決? –
是的,我再次刪除我最後的android工作室,然後再從網站下載android studio,安裝。 ;) –