0

I got this error in sdk version 27. My gradle setting is

compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
    applicationId 'com.abc.def'
    minSdkVersion 21
    targetSdkVersion 27
    versionCode 2
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    multiDexEnabled true
}

This article doesn't help. I don't see anywhere use this code

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

just have code like this

android:textAppearance="?android:attr/textAppearance"

Any idea on How to fix it? Much appreciated!

Eric
  • 303
  • 1
  • 8
  • 19
  • Any solutions yet? – IntelliJ Amiya Aug 17 '18 at 05:36
  • 1
    Not yet, I use another computer with lower version of AS and Gradle. Looks like upgrading caused the issue. – Eric Aug 19 '18 at 02:38
  • Have you found any solution? I encountered this issue after I restarted my computer and there was no change made to the gradle or manifest before restarting. – SarojMjn Jan 13 '19 at 05:51
  • Possible duplicate of [Output: error: resource style/TextAppearance.Compat.Notification.Info (aka package\_name:style/TextAppearance.Compat.Notification.Info) not found](https://stackoverflow.com/questions/50323729/output-error-resource-style-textappearance-compat-notification-info-aka-packa) – Carl Anderson Jul 10 '19 at 16:45

2 Answers2

1

I think you should try adding style as below in your styles.xml file.

<style name="TextAppearance.AppCompat.Notification">
    <item name="android:textSize">12sp</item>
    <item name="android:textColor">?android:attr/textColorWhichYouWant</item>
</style>
Deep Patel
  • 2,584
  • 2
  • 15
  • 28
0

I am not sure this is the correct solution and am unable to find what caused the issue but mine was solved(stopped occurring) after I migrated to androidx. Migration guide

SarojMjn
  • 569
  • 1
  • 7
  • 23
  • 1
    my problem started when i integrated android x – Zulqurnain Jutt Mar 09 '19 at 13:29
  • I don't think the issue here is about androidx or the old android libraries, since I was able to run the project in other work stations with either one. Also I am not able to find the actual issue which caused such error – SarojMjn Mar 10 '19 at 05:28