迁移到Android Studio 3.2 API 28后,我的应用程序布局出现以下错误:
布局中的布局在基础布局中没有声明
文件夹当在数据库中查询资源时,这可能导致崩溃
与此限定符不匹配的配置
我遇到此错误的布局之一是:
<;?xml版本=";1.0“;编码=";utf-8“&燃气轮机;
<;LinearLayout xmlns:android=";http://schemas.android.com/apk/res/android"
android:layout_width=";填写“家长”;
android:layout_height=";填写“家长”;
android:orientation=";垂直的;
android:background=&[email protected]空"&燃气轮机;
<;框架布局
android:layout_width=";填写“家长”;
android:layout_height=";填写“家长”;
android:orientation=";垂直的&燃气轮机;
<;图片框
android:layout_width=";匹配“家长”;
android:layout_height=";包装“U内容”;
android:layout_gravity=";顶部“水平中心”;
android:adjustViewBounds=";“真的”;
android:contentDescription=&[email protected]/hello“u world”;
android:src=&[email protected]可拉拔/加载“顶部”/&燃气轮机;
<;图片框
android:layout_width=";匹配“家长”;
android:layout_height=";包装“U内容”;
android:layout_gravity=";底部“中心水平”;
android:adjustViewBounds=";“真的”;
android:contentDescription=&[email protected]/hello“u world”;
android:src=&[email protected]可拉伸/加载“U形底部”/&燃气轮机;
<;图片框
android:layout_width=";匹配“家长”;
android:layout_height=";包装“U内容”;
android:layout_gravity=";中心“;
android:contentDescription=&[email protected]/hello“u world”;
android:background=&[email protected]颜色/白色“;
android:layout“marginBottom=”;5dp“;
android:paddingTop=";10dp“;
android:paddingBottom=";10dp“;
android:src=&[email protected]可拉拔/加载“U徽标”/&燃气轮机;
<;图片框
android:id=&[email protected]+id/装载“;
android:layout_width=";填写“家长”;
android:layout_height=";匹配“家长”;
android:layout_gravity=";中心“中心垂直”;
android:layout“marginBottom=”;0dp";
安卓:布局;0dp";
android:contentDescription=&[email protected]/hello“u world”;
android:scaleType=";菲特西;
android:src=&[email protected]空"/&燃气轮机;
</框架布局>;
</线性布局>;
我在第一个线性布局的第一行上得到了错误
有人知道如何解决这个错误吗
多谢各位
更新:用什么为我解决了问题回答了我的问题
在我的例子中,关闭并重新打开Android studio解决了这个问题。重建项目或清除缓存没有帮助