升级Android Studio 到
Android Studio Narwhal 3 Feature Drop | 2025.1.3 版本以后
每次在打开文件时自动下载源文件,就会提示,弹出个gradle报错的框
Execution failed for task ':xxxxxx:ijDownloadArtifactf752e408-610'.
Could not resolve all files for configuration
':xxxx:downloadArtifact_73bd5eb9-7c8d-407d-ae72-78cdf22d78ff'.
> Could not find xxxxx-sources.jar (xxxx:2.8.9.3).
Searched in the following locations:
<http://artifactory.client.xxxx.cn/artifactory/ext-release-local/xxxx-sources.jar> Possible solution: - Declare repository providing the artifact, see the documentation at
<https://docs.gradle.org/current/userguide/declaring_repositories.html>
解决方法
Setting > Advanced Settings > Automatically download sources for a file upon open