Error:resource style/TextAppearance.Compat.Notification.Info (aka {packageId}.test:style/TextAppearance.Compat.Notification.Info) not found
Asked Answered
C

3

18

I just updated the build.gradle compile SDK to 27 API.

compileSdkVersion 27
buildToolsVersion '27.0.3'
targetSdkVersion 27

but but once I hit sync button it throws

error: resource style/TextAppearance.Compat.Notification.Info (aka  {packageId}.test:style/TextAppearance.Compat.Notification.Info) not found.
error: resource style/TextAppearance.Compat.Notification.Info (aka  {packageId}.test:style/TextAppearance.Compat.Notification.Info) not found.
error: resource style/TextAppearance.Compat.Notification.Info (aka  {packageId}.test:style/TextAppearance.Compat.Notification.Info) not found.
error: resource style/TextAppearance.Compat.Notification (aka  {packageId}.test:style/TextAppearance.Compat.Notification) not found.
error: resource style/TextAppearance.Compat.Notification (aka  {packageId}.test:style/TextAppearance.Compat.Notification) not found.
error: resource style/TextAppearance.Compat.Notification (aka  {packageId}.test:style/TextAppearance.Compat.Notification) not found.
error: resource style/TextAppearance.Compat.Notification.Time (aka  {packageId}.test:style/TextAppearance.Compat.Notification.Time) not found.
error: resource style/TextAppearance.Compat.Notification.Time (aka  {packageId}.test:style/TextAppearance.Compat.Notification.Time) not found.
error: resource style/TextAppearance.Compat.Notification.Time (aka {packageId}.test:style/TextAppearance.Compat.Notification.Time) not found.
error: resource style/TextAppearance.Compat.Notification.Title (aka {packageId}.test:style/TextAppearance.Compat.Notification.Title) not found.
error: resource style/TextAppearance.Compat.Notification.Title (aka  {packageId}.test:style/TextAppearance.Compat.Notification.Title) not found.
error: resource style/TextAppearance.Compat.Notification.Title (aka  {packageId}.test:style/TextAppearance.Compat.Notification.Title) not found.
error: failed linking references.

but the build process was ok with SDK 26

Concentration answered 13/1, 2018 at 16:5 Comment(0)
T
29

Previously:

android:textAppearance="@style/TextAppearance.AppCompat.Notification"

Now the following is correct:

android:textAppearance="@style/TextAppearance.Compat.Notification"

Since:

compileSdkVersion 27
buildToolsVersion "27.0.3" 
minSdkVersion 19 
targetSdkVersion 27
Thach answered 25/1, 2018 at 18:13 Comment(5)
where to add this line android:textAppearance="@style/TextAppearance.Compat.Notification" ??Hahn
Please explain more about it @jhandeiHahn
@Quicklearner take a look to my answer on this post, maybe it helps youJule
in every text view?Aliciaalick
where to make this change?Stalwart
J
12

In my case, I solved it by deleting all cached libraries from Gradle on:

\{userFolder}\.gradle\caches

delete cached libraries in windows

Jule answered 28/1, 2019 at 16:9 Comment(1)
In my case, the build failure seemed to happen after no real change to code or migration to a new SDK, I was moving around projects quite a bit. I also got several strange locked file messages. Regardless, clearing this cache solved the issue.Cline
B
2

in my case i have added this line in gradle if u still want to use support libraries instead of AndroidX

implementation 'com.android.support:support-v4:28.0.0'
Bemock answered 1/7, 2020 at 7:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.