{"id":16351373,"url":"https://github.com/autonomousapps/resolvingconfigurationsissue","last_synced_at":"2025-11-13T05:30:17.562Z","repository":{"id":73392999,"uuid":"214718289","full_name":"autonomousapps/ResolvingConfigurationsIssue","owner":"autonomousapps","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-14T22:24:28.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T15:29:36.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/autonomousapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-12T21:34:11.000Z","updated_at":"2019-10-14T22:24:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"e91b8ded-00ec-488d-bb4d-a427f34c86db","html_url":"https://github.com/autonomousapps/ResolvingConfigurationsIssue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autonomousapps%2FResolvingConfigurationsIssue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autonomousapps%2FResolvingConfigurationsIssue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autonomousapps%2FResolvingConfigurationsIssue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autonomousapps%2FResolvingConfigurationsIssue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autonomousapps","download_url":"https://codeload.github.com/autonomousapps/ResolvingConfigurationsIssue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239605126,"owners_count":19666996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T01:09:15.173Z","updated_at":"2025-11-13T05:30:17.497Z","avatar_url":"https://github.com/autonomousapps.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ResolvingConfigurationsIssue\n## Observed\nYou can resolve the configurations and artifacts of the Java project without issue.\nBut when attempting to do so (using the same code) in an Android project, it fails at configuration time.\nRepro steps below.\n\n## Expected\nYou can resolve the configurations and artifacts of the Android project without issue (and it should happen during task execution).\n\n## To reproduce\nFirst, observe that it works in the Java project:\n1. `cd java`\n1. `./gradlew app:run`\n\nSecond, observe that it fails in the Android project:\n1. `cd android`\n1. `./gradlew app:assembleDebug`\n\nThe output looks like this:\n\n```\nFAILURE: Build failed with an exception.\n\n* Where:\nBuild file '/workspace/ResolvingDependenciesTest/android/app/build.gradle' line: 41\n\n* What went wrong:\nCould not determine the dependencies of task ':app:compileDebugJavaWithJavac'.\n\u003e Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.\n   \u003e More than one variant of project :lib1 matches the consumer attributes:\n       - Configuration ':lib1:debugRuntimeElements' variant android-assets:\n           - Unmatched attributes:\n               - Found artifactType 'android-assets' but wasn't required.\n               - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.\n           - Compatible attributes:\n               - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.\n               - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.\n               - Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.\n               - Required org.jetbrains.kotlin.platform.type 'androidJvm' and found compatible value 'androidJvm'.\n...etc...\n```\n\nSomething about the Android project is:\n1. Resolving this configuration early (during conguration instead of execution) and\n2. Causing the resolution to fail due to some variant-aware ambiguity (perhaps as a consequence of the first point).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautonomousapps%2Fresolvingconfigurationsissue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautonomousapps%2Fresolvingconfigurationsissue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautonomousapps%2Fresolvingconfigurationsissue/lists"}