2014 Google IO 釋出了三個新元件,
直接引入的話會有一點問題,
附上可以順利編譯的設定,
1 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
1 | android { compileSdkVersion 20 buildToolsVersion '20.0.0' defaultConfig { minSdkVersion 15 targetSdkVersion 20 versionCode 1 versionName "1.0" } } dependencies { compile 'com.android.support:recyclerview-v7:+' compile 'com.android.support:cardview-v7:+' compile 'com.android.support:palette-v7:+' } |