如何解决 Android Studio 3 错误中链接文件资源失败的问题?
How to solve failed linking file resources on Android Studio 3 error?
我已经切换到 Android Studio 3。
在我解决了很多问题之后,我得到了这些错误:
为什么在我的布局中出现此错误?
当我注释掉 "@style/TextAppearance.StatusBar.EventContent"
时,它在重建后再次取消注释。
在这个布局页面上面有一个注释:
Files under build folder are generated and should not be edited
<?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" />
这是complete布局,
你可以从 this link.
看到完整的 Gradle 配置
这是我的 Gradle 项目。
我没有看到 TextAppearance.StatusBar.Even tContent defined In your style : 将其更改为已定义的样式,如果不需要则将其删除
我已经切换到 Android Studio 3。 在我解决了很多问题之后,我得到了这些错误:
为什么在我的布局中出现此错误?
当我注释掉 "@style/TextAppearance.StatusBar.EventContent"
时,它在重建后再次取消注释。
在这个布局页面上面有一个注释:
Files under build folder are generated and should not be edited
<?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" />
这是complete布局,
你可以从 this link.
看到完整的 Gradle 配置
这是我的 Gradle 项目。
我没有看到 TextAppearance.StatusBar.Even tContent defined In your style : 将其更改为已定义的样式,如果不需要则将其删除