Ресурс в стиле флаттер не найден - PullRequest
0 голосов
/ 28 марта 2019
Flutter Version: v1.0.0 stable 
Windows 10 
Android Studio 3.3.2

Я пытаюсь запустить приложение флаттера на эмуляторе, но получаю следующее сообщение отладки.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  Output:  error: resource style/TextAppearance.Compat.Notification.Info (aka com.example.homer:style/TextAppearance.Compat.Notification.Info) not found.
  error: resource style/TextAppearance.Compat.Notification.Info (aka com.example.homer:style/TextAppearance.Compat.Notification.Info) not found.
  error: resource style/TextAppearance.Compat.Notification.Info (aka com.example.homer:style/TextAppearance.Compat.Notification.Info) not found.
  error: resource style/TextAppearance.Compat.Notification (aka com.example.homer:style/TextAppearance.Compat.Notification) not found.
  error: resource style/TextAppearance.Compat.Notification (aka com.example.homer:style/TextAppearance.Compat.Notification) not found.
  error: resource style/TextAppearance.Compat.Notification (aka com.example.homer:style/TextAppearance.Compat.Notification) not found.
  error: resource style/TextAppearance.Compat.Notification.Time (aka com.example.homer:style/TextAppearance.Compat.Notification.Time) not found.
  error: resource style/TextAppearance.Compat.Notification.Time (aka com.example.homer:style/TextAppearance.Compat.Notification.Time) not found.
  error: resource style/TextAppearance.Compat.Notification.Time (aka com.example.homer:style/TextAppearance.Compat.Notification.Time) not found.
  error: resource style/TextAppearance.Compat.Notification.Title (aka com.example.homer:style/TextAppearance.Compat.Notification.Title) not found.
  error: resource style/TextAppearance.Compat.Notification.Title (aka com.example.homer:style/TextAppearance.Compat.Notification.Title) not found.
  error: resource style/TextAppearance.Compat.Notification.Title (aka com.example.homer:style/TextAppearance.Compat.Notification.Title) not found.
  error: failed linking references.

  Command: C:\Users\Merv Merzoug\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\ea0864e983313bfd344a542393f352f8\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
          C:\Users\Merv Merzoug\AppData\Local\Android\sdk\platforms\android-27\android.jar\
          --manifest\
          C:\Users\Merv Merzoug\homer\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
          -o\
          C:\Users\Merv Merzoug\homer\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
          -R\
          @C:\Users\Merv Merzoug\homer\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\
          --java\
          C:\Users\Merv Merzoug\homer\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
          --custom-package\
          com.example.homer\
          -0\
          apk\
          --output-text-symbols\
          C:\Users\Merv Merzoug\homer\build\app\intermediates\symbols\debug\R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.1-4818971-windows Daemon #0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
Finished with error: Gradle task assembleDebug failed with exit code 1

Что я пробовал: я нашел этот пост, который, похоже, близок к той же проблеме, но я не верю, что это проблема управления версиями.

Я также нашел этот пост, в котором предлагается удалить .gradle / caches, но мне неясно, где находится этот каталог ...

Я также попытался добавить стиль в файл styles.xmlсогласно this

Кто-нибудь еще сталкивался с этой ошибкой?

...