android - 我怎样才能避免 java.io.StreamCorruptedException:无效的流标头:00000000
问题描述
当我添加文本输入 xml 标记时,如下所示
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="60dp"
android:layout_marginEnd="60dp"
android:ems="10"
android:gravity="start|top"
android:inputType="textAutoCorrect"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/imageButton"
app:layout_constraintStart_toEndOf="@id/imageView3"
app:layout_constraintTop_toTopOf="parent" />
我得到了错误
Execution failed for task ':app:kaptDebugKotlin'.
> java.io.StreamCorruptedException: invalid stream header: 00000000
解决方案
推荐阅读
- c# - Xamarin 启动
- c++ - 使用类型特征的部分类专业化
- angular - 在Angular中实例化时如何将[formControl]附加到类型
- android - onclick Edittext,弹出一个日期输入对话框片段
- javascript - Angular 6 页面未显示来自节点后端的数据
- python - 如何在共享相同结构并位于同一 repo 中的多个单独的 Flask 应用程序之间切换?
- python - 如何在 Python 中使用循环进行测验?
- r - 在 R 闪亮会话期间保存值
- rest - 如何处理名称冲突与 RESTful API 中的操作
- go - 如何用扫描值填充切片