java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView
将布局文件中的组件移动之后就报 Java.lang.ClassCastException: Android.widget.LinearLayout cannot be cast to android.widget.TextView这个错了。解决方案:将项目clean下就好了其实自己还找了半天,感觉没有出问题,最后网上查了下,发现clean下就好了,