gpt4 book ai didi

android - flutter 构建 APK : Execution failed for task ':speech_recognition:verifyReleaseResources'

转载 作者:行者123 更新时间:2023-12-01 18:06:15 26 4
gpt4 key购买 nike

大家。我在构建 apk 作为 flutter 中的发布方法时遇到一些问题。我真的不知道为什么会出现错误。这是指https://github.com/rxlabz/speech_recognition/tree/master/example

在构建为发布方法期间,出现了以下问题。

FAILURE: Build failed with an exception.                                                                           

* What went wrong:
Execution failed for task ':speech_recognition:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/Users/kk/.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.

/Users/kk/.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.

/Users/kk/.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.

/Users/kk/.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.

/Users/kk/.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 3m 45s

最佳答案

我知道,答案可能为时已晚,但无论如何,这是一个令人烦恼的问题 - 我现在遇到了同样的问题,并花了几个小时来解决它。

最后,解决方法是在 lib 的 Android 文件夹中的 build.gradle 中手动将“compileSdkVersion”属性从 25 更改为 28,之后我成功编译了项目。

关于android - flutter 构建 APK : Execution failed for task ':speech_recognition:verifyReleaseResources' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59114176/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com