Java 为什么我对解决布局有问题
我正在制作一个android应用程序,我的注册表布局有问题,因为我遇到了错误:无法解析symbol@layout/content\uJava 为什么我对解决布局有问题,java,android,android-studio,layout,Java,Android,Android Studio,Layout,我正在制作一个android应用程序,我的注册表布局有问题,因为我遇到了错误:无法解析symbol@layout/content\u <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schem
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Registo">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_third" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@android:drawable/ic_dialog_email" />
</android.support.design.widget.CoordinatorLayout>
检查您是否已经拥有具有给定名称的布局文件:content\u third。
如果没有,请创建它,或者将其重命名为您的布局名称。在
src/main/res/layout
中是否有名为content\u third.xml
的文件?@Gonçalovievieviracarvalho欢迎您。如果您觉得答案有帮助,请接受它作为解决方案。