关闭

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

标签: compileSdkVersion
2174人阅读 评论(0) 收藏 举报


报错误   Error:Execution failed for task ':app:compileDebugJavaWithJavac'.> compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.


把版本号统一一下,主要是下面这几个参数的值

    compileSdkVersion 23
    buildToolsVersion "23.0.0"
    targetSdkVersion 23
dependencies {
    compile 'com.android.support:recyclerview-v7:23.1.1'    
   }


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'

}


1
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:10950次
    • 积分:349
    • 等级:
    • 排名:千里之外
    • 原创:18篇
    • 转载:22篇
    • 译文:4篇
    • 评论:0条
    文章分类