很可能是.xml文件没有加载上;可参考http://www.cnblogs.com/mmzs/p/8757709.html 转载于:https://www.cnblogs.com/mmzs/p/8757771.html