【发布时间】:2019-10-16 11:30:50
【问题描述】:
我正在尝试使用“下载源”按钮下载任何 Android 库的源代码,但每次都会出现 gradle 任务错误。有什么办法可以解决吗?
10:19:06 PM: Executing task ':app:DownloadSources --stacktrace'...
Executing tasks: [:app:DownloadSources]
FAILURE: Build failed with an exception.
* What went wrong:
Task 'DownloadSources' not found in project ':app'.
* Try:
Run gradle tasks to get a list of available tasks. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.execution.TaskSelectionException: Task 'DownloadSources' not found in project ':app'.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
10:19:06 PM: Task execution finished ':app:DownloadSources --stacktrace'.
【问题讨论】:
-
@fangzhzh 不幸的是,这些答案已经过时,没有一个可以帮助解决这个问题