We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d04654c commit f34519dCopy full SHA for f34519d
skiko/buildSrc/src/main/kotlin/tasks/configuration/JvmTasksConfiguration.kt
@@ -543,7 +543,7 @@ fun Project.androidJar(askedVersion: String = ""): Provider<File> =
543
val platformsDir = androidHome.resolve("platforms")
544
val versions = platformsDir.list().orEmpty()
545
versions.maxByOrNull { name -> // possible name: "android-32", "android-33-ext4"
546
- name.split("-").getOrNull(1)?.toInt() ?: 0
+ name.split("-").getOrNull(1)?.toIntOrNull() ?: 0
547
} ?: error(
548
buildString {
549
appendLine("'$platformsDir' does not contain any directories matching expected 'android-NUMBER' format: ${versions}")
0 commit comments