Je viens de mettre à jour le SDK de compilation build.gradle vers 27 API.
compileSdkVersion 27
buildToolsVersion '27.0.3'
targetSdkVersion 27
mais mais une fois que je frappe le bouton de synchronisation, il jette
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.
mais le processus de construction était correct avec le SDK 26
Précédemment:
Android:textAppearance="@style/TextAppearance.AppCompat.Notification"
Maintenant ce qui suit est correct:
Android:textAppearance="@style/TextAppearance.Compat.Notification"
Puisque:
compileSdkVersion 27 buildToolsVersion "27.0.3" minSdkVersion 19 targetSdkVersion 27
Dans mon cas, je l'ai résolu en supprimant toutes les bibliothèques mises en cache de Gradle sur:
\{userFolder]\.gradle\caches