2017-02-09 54 views
0

我在调整我的回收视图库版本时遇到了编译的SDK版本出现错误的问题。与已编译的SDK版本兼容的recycler视图库版本24

我的代码如下: -

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "25.0.1" 

    defaultConfig { 
     applicationId "com.example.users.recyclerviewreloaded" 
     minSdkVersion 14 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 
dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:+' 
    compile 'com.android.support:recyclerview-v7:25.1.1' 
} 
+0

请在您的SO问题的实际错误。 – AndySavage

+0

添加错误日志.. –

回答

0

更新compileSdkVersion和buildToolsVersion

compileSdkVersion 25 and buildToolsVersion "25.0.2"