xml中问题
<button android:id="@+id/btn" android:text="更新" android:layout_width="wrap_content" android:layout_height="wrap_content" />
不小心成把 Button 写成 button android没有报错 应为可能是自定义控件。
运行时错误出来了
Android android.view.InflateException Binary XML file line #16: Error inflating class button