【发布时间】:2022-08-21 18:20:04
【问题描述】:
我正在尝试为我的 Flutter 应用程序创建一个 appbundle。到目前为止,它一直运行良好,但由于某种原因,它现在给出了一个错误。我只是去了项目的文件夹并运行flutter clean,然后运行flutter build appbundle。尽管如此,它还是给出了以下错误:
Running \"flutter pub get\" in quotes... 2.060ms
Building with sound null safety
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task \':app:shrinkBundleReleaseResources\'.
> A failure occurred while executing com.android.build.gradle.internal.transforms.ShrinkAppBundleResourcesAction
> java.nio.file.FileSystemAlreadyExistsException (no error message)
* 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 1m 43s
Running Gradle task \'bundleRelease\'... 105,0s
Gradle task bundleRelease failed with exit code 1
-
嘿@Antonio Peña 你找到解决方案了吗?我现在被这个问题困住了。
-
是的,虽然我不记得具体要做什么。在这个问题的解决方案中提到了一些可能的答案。
标签: java android flutter gradle build.gradle