首页 > 解决方案 > 我怎样才能避免 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

标签: androidandroid-studioandroid-layoutkotlininput

解决方案


推荐阅读