扑。任务“:audioplayer:verifyReleaseResources”执行失败
Posted
技术标签:
【中文标题】扑。任务“:audioplayer:verifyReleaseResources”执行失败【英文标题】:Flutter. Execution failed for task ':audioplayer:verifyReleaseResources' 【发布时间】:2020-06-13 16:27:26 【问题描述】:我尝试 flutter run --release 并得到一个错误。所有的颤振分析和颤振医生都给了我一切都很好的标志。你能帮帮我吗?
* What went wrong:
Execution failed for task ':audioplayer:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\����\.gradle\caches\transforms-2\files-2.1\0a271e99b6771ad4a84318244d532fb7\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontStyle not found.
C:\Users\����\.gradle\caches\transforms-2\files-2.1\0a271e99b6771ad4a84318244d532fb7\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/font not found.
C:\Users\����\.gradle\caches\transforms-2\files-2.1\0a271e99b6771ad4a84318244d532fb7\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontWeight not found.
C:\Users\����\.gradle\caches\transforms-2\files-2.1\0a271e99b6771ad4a84318244d532fb7\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.
C:\Users\����\.gradle\caches\transforms-2\files-2.1\0a271e99b6771ad4a84318244d532fb7\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.
* 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 46s
【问题讨论】:
【参考方案1】:在 pubspec.yml 中更改您的音频播放器依赖项
依赖: 音频播放器:^0.15.1
【讨论】:
以上是关于扑。任务“:audioplayer:verifyReleaseResources”执行失败的主要内容,如果未能解决你的问题,请参考以下文章