Skip to content

Commit 4cbf375

Browse files
TapchicomaSpace
authored andcommitted
Add workaround for Gradle dependency resolution error
Gradle throws unexpected error on dependency resolution without this workaround. Related to KT-51837
1 parent a16798d commit 4cbf375

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libraries/tools/kotlin-gradle-plugin-api/build.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@ dependencies {
99
api(project(":native:kotlin-native-utils"))
1010
api(project(":kotlin-project-model"))
1111

12-
compileOnly("com.android.tools.build:gradle:3.4.0")
12+
compileOnly("com.android.tools.build:gradle:3.4.0") {
13+
// Without it - Gradle dependency resolution fails with unexpected error
14+
// Caused by: java.lang.IllegalStateException: Unexpected parent dependency id 131. Seen ids: [129, 2, 130, 9, 10, 138, 11, 139, 140, 14, 153, 154, 155, 156, 157, 158, 161, 164, 177, 178, 51, 179, 52, 180, 53, 54, 55, 183, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 195, 68, 200, 201, 202, 203, 206, 211, 212, 215, 222, 223, 224, 231, 232, 105, 233, 106, 107, 108, 109, 110, 111, 112, 113, 114, 242, 115, 243, 116, 244, 117, 118, 119, 120, 121, 122]
15+
// at org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsBuilder.deserialize(TransientConfigurationResultsBuilder.java:171)
16+
// at org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsBuilder.lambda$load$5(TransientConfigurationResultsBuilder.java:117)
17+
// Could be reproduced by running `:kotlin-gradle-plugin-api:gPFFPMP` task
18+
isTransitive = false
19+
}
1320
}

0 commit comments

Comments
 (0)