简体   繁体   English

java.lang.IllegalStateException:aidl 缺少 Android Studio 3.0

[英]java.lang.IllegalStateException: aidl is missing Android Studio 3.0

I've the latest version of everything in android studio 3.0 of all the sdks and build tools and I keep getting this aidl is missing error.我拥有所有 sdks 和构建工具的 android studio 3.0 中所有内容的最新版本,但我不断收到此 aidl is missing 错误。

This is the project level and application level gradle files.这是项目级别和应用程序级别的 gradle 文件。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.3'
    defaultConfig {
        applicationId "com.example.ibraheem.tesst"
        minSdkVersion 23
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.1'
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.support:support-vector-drawable:25.3.1'
}

// Top-level build file where you can add configuration options common to all sub-projects/modules. // 顶级构建文件,您可以在其中添加所有子项目/模块通用的配置选项。

buildscript {

    repositories {
        maven { url 'https://maven.google.com' }
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0-alpha1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url 'https://maven.google.com' }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Build-Tools & platform-tools & tools must be on one API . Build-Tools & platform-tools & tools 必须在一个 API 上。

I guess in android studio 3 platform-tools is on Api 26 , change your Build-tools version to Api 26我猜在 android studio 3 平台工具是在 Api 26 上,将你的 Build-tools 版本更改为 Api 26

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM