2017-02-09 93 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"

相關問題