2017-05-20 6 views
1

すべてのsdksおよびビルドツールのうち、最新バージョンのAndroidスタジオ3.0がありました。java.lang.IllegalStateException:aidlにAndroid Studio 3.0がありません

これは、プロジェクトレベルとアプリケーションレベルの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' 
} 

//すべてのサブプロジェクト/モジュールに共通の設定オプションを追加できるトップレベルのビルドファイル。

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 
} 

答えて

0

ビルド・ツール&ツールは1つのAPI上にある必要があります&プラットフォームのツール。

私はアンドロイドスタジオ3プラットフォームツールはApi 26にあると思うので、ビルドツールのバージョンをApiに変更してください26

関連する問題