我开始学习安卓工作室。我试着重复简单的“你好世界”:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/activity_main"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"
android:paddingBottom="16dp"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
</RelativeLayout>但是当我点击“设计”视图时,这个错误会显示出来吗?
设计编辑器在成功构建之前不可用。
我怎样才能纠正这个错误。


我只是注意到我的xml代码正在导致错误。这就是这可能行不通的原因吗?
发布于 2017-11-17 20:06:19
做这个
构建->重建项目
https://stackoverflow.com/questions/47289011
复制相似问题