[英]How to solve failed linking file resources on Android Studio 3 error?
我已切换到Android Studio3。在解决了许多问题之后,出现了以下错误:
为什么在我的布局中会出现此错误?
当我注释掉"@style/TextAppearance.StatusBar.EventContent"
,它在重建后将不再被注释掉。
在此布局页面上方有一个注释:
生成文件夹下的文件已生成,不应进行编辑
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="100dp"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:paddingRight="15dp"
android:text="سامانه پایش همراه"
android:textAppearance="@style/TextAppearance.StatusBar.EventContent"
android:textSize="18sp"
android:textStyle="bold" />
我没有在您的样式中看到TextAppearance.StatusBar.EventContent已定义:将其更改为已定义的样式或在不必要时将其删除
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.