Android studio 呈现问题/发现周期性<;包括>;项目布局中的链-Android Studio

Android studio 呈现问题/发现周期性<;包括>;项目布局中的链-Android Studio,android-studio,rendering,layout-xml,Android Studio,Rendering,Layout Xml,我在安卓工作室工作。它是android版本2.3.2、7.0(牛轧糖)和API 25。对于我的layout/XML文件,我遇到了渲染问题,还发现了循环链:活动映射包括活动映射 我查看了其他StackOverflow文章,将API更改为较低版本,通过添加“Base.”来更改style.xml文件 这个问题仍然在发生,我不知道还能做什么。除此之外,我所有的其他布局/XML设计都可以使用。这将使用贴图获得两点之间的方向。以下是XML文件: <LinearLayout xmlns:android

我在安卓工作室工作。它是android版本2.3.2、7.0(牛轧糖)和API 25。对于我的layout/XML文件,我遇到了渲染问题,还发现了循环链:活动映射包括活动映射

我查看了其他StackOverflow文章,将API更改为较低版本,通过添加“Base.”来更改style.xml文件

这个问题仍然在发生,我不知道还能做什么。除此之外,我所有的其他布局/XML设计都可以使用。这将使用贴图获得两点之间的方向。以下是XML文件:

 <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="edu.usf.cse.labrador.familycare.MapsActivity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/etOrigin"
    android:hint="Enter your address" />


<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Find path"
        android:id="@+id/btnFindPath" />
    <ImageView
        android:layout_marginLeft="20dp"
        android:layout_marginTop="5dp"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:src="@drawable/ic_distance"/>
    <TextView
        android:layout_marginLeft="5dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="0 km"
        android:id="@+id/tvDistance" />

    <ImageView
        android:layout_marginLeft="20dp"
        android:layout_marginTop="5dp"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:padding="5dp"
        android:src="@drawable/ic_clock"/>
    <TextView
        android:layout_marginLeft="5dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="0 min"
        android:id="@+id/tvDuration" />
</RelativeLayout>


<fragment
    android:id="@+id/map"
    android:name="com.google.android.gms.maps.SupportMapFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:layout="@layout/activity_maps" />

在设计选项中,我什么也看不到。布局是空白的

如果您对如何解决此问题有任何建议,请告诉我


谢谢大家!!非常感谢

可能不是这样,但您缺少闭合线性布局

我把它放进去,它就会出现在我的屏幕上

</LinearLayout >

删除/更改片段标记中的以下内容:

 tools:layout="@layout/activity_maps"

如果无法显示布局本身

我怀疑您已经修复了它,也怀疑您刚刚错过了结束线布局标签,但为了完整性,您是否忘记添加结束线布局标签?