2015-10-04 120 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它对我有效....谢谢你 –