When importing the android project is giving error in java.lang

0

Good afternoon, I installed the IDE android studio in linux and opened the project I'm doing, but this error giving in gradle files, in Windows was working without error, it was only coming to linux that started to give these errors .. I tried to see on the internet and could not, could someone help me?

app file:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.0'
    defaultConfig {
        applicationId "project.welcomemoney"
        minSdkVersion 17
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    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.0.0'
    compile 'com.android.support:design:25.0.0'
//    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha2'
    testCompile 'junit:junit:4.12'
}

ProjectName File:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.1'

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

allprojects {
    repositories {
        jcenter()
    }
}

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

Error loading gradle:

Error:Execution failed for task ':app:compileDebugAidl'.
> java.lang.IllegalStateException: aidl is missing

Thank you ...

    
asked by anonymous 19.04.2017 / 22:43

1 answer

2

The version of the buildToolsVersion (25) parameter differs from the versions configured in compileSdkVersion, targetSdkVersion, and in the dependencies (24) support libraries. Try to leave everything in the latest.

    
20.04.2017 / 00:24