Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve failed linking file resources on Android Studio 3 error?

I have switched to Android Studio 3. After many problems that I fixed, I got these errors:

enter image description here

enter image description here

Why, in my layout do I get this error?

When I have commented out "@style/TextAppearance.StatusBar.EventContent", it gets uncommented out again after rebuild.

Above this layout page there is a note:

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" />

This is the complete layout,
and you can see whole Gradle config from this link.
This is my Gradle project.

like image 934
Groot Avatar asked Nov 02 '17 08:11

Groot


People also ask

What is Android resource linking failed?

The Android resource linking failed error can also occur if you have an error in any of your XML resources.

What is AAPT error in Android Studio?

AAPT: Error: failed writing to '… \app\build\intermediates\runtim_symbol_list\debug\R. txt': … Error log. The cause of this issue is all about the combination of Android Gradle Plugin Version and Gradle Version.

How do I fix failed to compile values in Android?

To fix : 1st bring all the dependencies from your project to zoom sample application and check whether the same issue exist. 2nd comment your dependencies one by one and build the zoom sample application this will lead to finding the dependency that has conflict with zoom sdk .


1 Answers

I don't see TextAppearance.StatusBar.Even‌​‌​tContent defined In your style : change it into defined style or remove it if it is unacessary

like image 117
Nawrez Avatar answered Oct 04 '22 22:10

Nawrez