【发布时间】:2021-05-11 23:26:31
【问题描述】:
我是新来的颤振。以下是 SDK Manager 上可用工具的列表 -
如您所见,我已经下载了这些工具。但是在ide中调试显示错误并告诉我下载了一个没有安装的工具-
'''
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following SDK components:
build-tools;28.0.3 Android SDK Build-Tools 28.0.3
platforms;android-29 Android SDK Platform 29
Install the missing components using the SDK manager in Android Studio.
2
* 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 51s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
'''
请帮帮我。
【问题讨论】:
-
不确定,但可能是许可证问题。尝试从命令行运行
flutter doctor --android-licenses。输入y,如果不被接受,按回车接受许可。
标签: flutter android-studio dart android-sdk-tools android-sdk-manager