我有以下布局(实际上是空的):

android:id="@+id/set_layout"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:contentDescription="content desc"

android:orientation="vertical" >

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Hello, I am a TextView" />

Activity类包含以下内容:

public class TestActivity extends Activity {

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_test);

}

}

在移动设备上运行此命令时,出现以下错误:

SpannableStringBuilder

SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

无论是否使用TextView我都尝试过,并且错误仍然存在,对于这样的基本布局,我必须做一些根本上错误的事情。

有人对我如何获得此错误而不会加载有任何想法吗?

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐