我正在尝试将这两行添加到build.gardle中的依赖项:
compile 'com.android.support:recyclerView-v7:23.1.1'
compile 'com.android.support:cardView-v7:23.1.1'
但是,我收到了这些错误:
错误:(25,13)无法解决: com.android.support:recyclerView-v7:23.1.1
错误:(26,13)无法解决: com.android.support:cardView-v7:23.1.1
任何人都可以告诉我如何解决它?谢谢你提前。
答案 0 :(得分:1)
您是否在sdk中下载了最新的图书馆?
尝试:
compile 'com.android.support:recyclerview-v7:23.2.1'
compile 'com.android.support:cardview-v7:23.2.1'
如果不起作用,请检查sdk并在必要时更新支持库!
答案 1 :(得分:1)
不确定从哪里复制这些行,但是你有一个错字。 v
在"视图"
compile "com.android.support:recyclerview-v7:23.1.1"
compile "com.android.support:cardview-v7:23.1.1"
答案 2 :(得分:0)
编译' com.android.support:cardview-v7:+'
compile' com.android.support:recyclerview-v7:+'
使用此代替定义" v7:23.1.1"
答案 3 :(得分:0)
第24版现已上市,您可以使用
compile 'com.android.support:cardview-v7:24.2.1'