XML file line #2: Error inflating class android.support.v7.widget.CardView

原因是项目中没有引用
可在app build.gradle 中加入

dependencies { compile 'com.android.support:cardview-v7:25.3.0' }

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念