mbonnin
02/28/2024, 10:41 AMijDownloadSources540ca63f-c44
). The task complains that it can't find google()
but I'm pretty sure I've added it.mbonnin
02/28/2024, 11:14 AMrepositories {
mavenCentral()
google()
}
to my root project build script worked even though dependencyResolutionManagement.repositories
in settings.gradle.kts
should have been enoughAnton Mefodichev
03/04/2024, 10:42 AMmbonnin
03/04/2024, 10:55 AMmbonnin
03/04/2024, 10:56 AMcom.android.build.gradle.api.BaseVariant
and click the "Download Sources" buttonmbonnin
03/04/2024, 10:56 AMmbonnin
03/04/2024, 10:57 AM* What went wrong:
Configuration cache state could not be cached: field `__collectionProvider__` of task `:ijDownloadSources59cd943f-a1f` of type `IjDownloadTask`: error writing value of type 'org.gradle.api.internal.provider.DefaultProperty'
> Could not resolve all dependencies for configuration ':downloadSources_b2d901cc-d894-4e9b-83af-550d21ceb7b6'.
> Could not find com.android.tools.build:gradle:8.0.0.
Searched in the following locations:
- <https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/8.0.0/gradle-8.0.0.pom>
- file:/Users/mbonnin/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/223.8836.41/19e52733ac61e1d2e675720f92daf5959355cb1e/ideaIC-223.8836.41/com.android.tools.build/gradle/8.0.0/ivy-8.0.0.xml
- file:/Users/mbonnin/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/223.8836.41/19e52733ac61e1d2e675720f92daf5959355cb1e/ideaIC-223.8836.41/gradle-8.0.0-2-withKotlin-withSources.xml
Required by:
project :
twisterrob
03/05/2024, 9:38 AMmbonnin
03/05/2024, 9:39 AMtwisterrob
03/05/2024, 9:39 AMmbonnin
03/05/2024, 9:39 AMmbonnin
03/05/2024, 9:41 AMmbonnin
03/05/2024, 9:42 AM> The project declares repositories, effectively ignoring the repositories you have declared in the settings.
You can figure out how project repositories are declared by configuring your build to fail on project repositories.
mbonnin
03/05/2024, 9:43 AMmbonnin
03/05/2024, 9:44 AMtwisterrob
03/05/2024, 9:53 AMmbonnin
03/05/2024, 9:54 AM