【问题标题】:Errors in flutter build apk颤振构建apk中的错误
【发布时间】: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.

我该如何解决这个错误。

谢谢大家

【问题讨论】:

  • 兄弟你有解决办法吗?

标签: flutter dart


【解决方案1】:

解决许可证在终端输入的问题

flutter doctor --android-licenses

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-08-25
    • 2020-12-18
    • 1970-01-01
    • 2022-01-01
    • 2021-10-15
    • 1970-01-01
    相关资源
    最近更新 更多