2015-10-04 147 views
6
android { 
    compileSdkVersion 23 
    buildToolsVersion "22.0.1" 
    defaultConfig { 
     applicationId "com.hiii" 
     minSdkVersion 11 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    productFlavors { 
    } 
} 
dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile files('libs/bolts-android-1.2.1 - Copy.jar') 
    compile 'com.android.support:appcompat-v7:23.0.0' 
    } 

我不能使用RecyclerView和Linearlayoutmanager。我試圖編譯舊版本太多,但每次談到與錯誤的時間無法解析symbol'recyclerview'.please幫我錯誤:無法找到符號類RecyclerView

回答

17

您還需要添加v7 recyclerview庫。將此添加到您的依賴關係中build.gradle

compile 'com.android.support:recyclerview-v7:23.0.0' 
+0

Awhhh它對我有效....謝謝你 –