版权声明:个人原创文章,欢迎点评,有错希望指出来,新手,谢谢大家--。-- https://blog.csdn.net/u013009808/article/details/50321007
AndroidRuntime(751): java.lang.RuntimeException:
Unable to start activity
ComponentInfo {com.example.androidhttpdemo/com.example.androidhttpdemo.Register}:
java.lang.ClassCastException:
android.widget.TextView cannot be cast to android.widget.Button。
这个异常很郁闷,在activity中强制类型转换时把button换成了TextView类型
太粗心了,写个文章“纪念”一下。
以后可以看清异常,就很好处理了。
哈哈哈