web-dev-qa-db-ja.com

Error:resource style / TextAppearance.Compat.Notification.Info(別名{packageId} .test:style / TextAppearance.Compat.Notification.Info)が見つかりません

Build.gradleコンパイルSDKを27 APIに更新しました。

compileSdkVersion 27
buildToolsVersion '27.0.3'
targetSdkVersion 27

しかし、同期ボタンを押すとスローされます

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.

しかし、ビルドプロセスはSDK 26で大丈夫でした

13
Mani devs

以前:

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

現在、次のことが正しいです。

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

以来:

compileSdkVersion 27
buildToolsVersion "27.0.3" 
minSdkVersion 19 
targetSdkVersion 27
24
pmichaelro

私の場合、キャッシュされたすべてのライブラリをGradleから削除することで解決しました:

\{userFolder}\.gradle\caches
8
Mario Velasco