Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 943
Mani devs Avatar asked Jan 13 '18 16:01

Mani devs


3 Answers

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

\{userFolder}\.gradle\caches

delete cached libraries in windows

like image 29
Mario Velasco Avatar answered Sep 28 '22 17:09

Mario Velasco


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
like image 183
pmichaelro Avatar answered Sep 28 '22 18:09

pmichaelro


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'
like image 23
Mudassir Khan Avatar answered Sep 28 '22 17:09

Mudassir Khan