的数据
我想查看androidx.compose的源代码,但当我点击下载源代码时,我会得到错误:
Executing tasks: [:module_widget:DownloadSources] in project /Users/venshine/Work/Zenepic/Botverse/build/mobile/BotVerse-Android/module_widget
Configuration on demand is an incubating feature.
> Task :module_widget:DownloadSources FAILED
FAILURE: Build failed with an exception.
* Where:
Initialization script '/private/var/folders/g5/5v5pjm192qjd3wwjf0zybh_r0000gn/T/ijmiscinit5.gradle' line: 25
* What went wrong:
Execution failed for task ':module_widget:DownloadSources'.
> Could not resolve all files for configuration ':module_widget:downloadSources_334b2bfe-8c44-4bff-8d12-bca3a5b29b08'.
> Could not find androidx.compose.foundation:foundation-layout:1.4.2@aar.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/androidx/compose/foundation/foundation-layout/1.4.2@aar/[email protected]
- https://repo.maven.apache.org/maven2/androidx/compose/foundation/foundation-layout/1.4.2@aar/[email protected]
Required by:
project :module_widget
* 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 897ms
1 actionable task: 1 executed
字符串
settings.gradle
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
型
我在Mac Intel芯片电脑上正常运行,但当同样的代码切换到Mac Apple芯片上时,出现了上面的情况,我该怎么办?
1条答案
按热度按时间tyg4sfes1#
我也遇到过同样的问题,如何去除对Compose BOM的依赖