【发布时间】:2021-09-02 12:16:53
【问题描述】:
我正在使用 Linux Mint 20.1 并尝试在我的 Android 手机上运行 Flutter 应用程序 (v 2.2.2) 我通过终端安装了 jdk 和 android sdk,但它给了我这个
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-30 Android SDK Platform 30
build-tools;29.0.2 Android SDK Build-Tools 29.0.2
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
Using Android SDK: /usr/lib/android-sdk
* 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 1s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 2,468ms
Exception: Gradle task assembleDebug failed with exit code 1
我已经接受了许可证,手动安装了所需的软件包,但都是徒劳的,它每次都给我相同的消息
【问题讨论】:
标签: android linux flutter linux-mint