【发布时间】:2020-10-14 21:22:15
【问题描述】:
我在使用flutter build apk 时遇到同样的错误。
我想创建 APK 只安装在 android 设备上,而不是在 google play 上发布。 我可以在终端中使用任何代码来解决这个问题吗?
错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not delete old \build\app\reports\lint-results-release-fatal.html
* 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 6s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 7.6s
Gradle task assembleRelease failed with exit code 1
颤振医生-v:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18363.1082], locale ar-IQ)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
edition (version 1.33.1)
[√] Connected device (1 available)
! Doctor found issues in 2 categories.
我该如何解决这个错误。
谢谢大家
【问题讨论】:
-
兄弟你有解决办法吗?