compileDebugJavaWithJavac.compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.

这个问题经常出现在你导入module 导致的

这是错误是你的版本问题 更改build.gradle 里面的配置 版本号 统一就可以了 是不是很简单 看红色的字


apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
    defaultConfig {
        applicationId "com.example.recycleviewslidingdelydemo"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
            multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile files('libs/nineoldandroids-2.4.0.jar')
    compile 'com.android.support:recyclerview-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'

}



你可能感兴趣的:(compileDebugJavaWithJavac.compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.)