gpt4 book ai didi

flutter - 当我尝试运行 flutter 项目时缺少 android.jar

转载 作者:行者123 更新时间:2023-12-02 19:20:16 24 4
gpt4 key购买 nike

嘿,我尝试运行一个项目,但它一直显示缺少 android.jar。我能做什么?

Launching lib\main.dart on SM G970F in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':app:processDebugResources'.
> File 'C:\Users\adamr\AppData\Local\Android\sdk\platforms\android-28\android.jar' specified for property 'androidJar' does not exist.

* 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 12s

最佳答案

This issue occurs when your platform SDK have missing android.jar file.

从路径中下载android版本的android.jar文件并将其放入您的平台SDK目录中

https://github.com/Sable/android-platforms

它解决了我的 Linux 中的问题。我确信它也可以在 Windows 上运行。

关于flutter - 当我尝试运行 flutter 项目时缺少 android.jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63166243/

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