在flutter上测试驱动器:找不到android.jar文件 [英] Test drive on flutter: android.jar file not found

查看:50
本文介绍了在flutter上测试驱动器:找不到android.jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是试图运行第一个应用程序,这就是发生的情况:

I'm just trying to run the first app and this is what happens:

失败:构建失败,并出现异常.

FAILURE: Build failed with an exception.

  • 出了什么问题:发现任务':app:processDebugResources'的配置存在问题.

  • What went wrong: A problem was found with the configuration of task ':app:processDebugResources'.

为属性"androidJar"指定的文件'C:\ Users \ XXXX \ Appdata \ Local \ Android \ sdk \ platforms \ android-28 \ android.jar'不存在.

File 'C:\Users\XXXX\Appdata\Local\Android\sdk\platforms\android-28\android.jar' specified for property 'androidJar' does not exist.

  • 尝试:使用--stacktrace选项运行以获取堆栈跟踪.使用--info或--debug选项运行,以获取更多日志输出.与--scan一起运行以获得完整的见解.

  • 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.

    https://help.gradle.org

    15秒内失败Gradle任务assembleDebug失败,退出代码为1退出(sigterm)

    BUILD FAILED in 15s Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

    该文件位于android-29文件夹中!我该怎么办?

    The file is on the android-29 folder! what should I do?

    推荐答案

    图片请更新您的Android SDK.

    Image Please update your android sdk.

    您没有安装api 28.请打开您的android sdk并安装android sdk 28.

    You don't have install api 28. Please open your android sdk and install android sdk 28.

    这篇关于在flutter上测试驱动器:找不到android.jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆