As of early June, Briefcase Android projects fail to build, with the message:
e: /Users/.../kotlin-stdlib-common-1.5.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
To Reproduce
briefcase run android with a helloworld project.
Additional context
This appears to be due to the Kotlin 1.5.0 release.
Short term, increasing the ext.kotlin_version to "1.4.30" seems to fix the problem. Increasing to "1.5.0" fails because the Kotlin-gradle-plugin is incompatible.
Longer term... this is the second time in a month that a perfectly functioning build file has stopped working because of a Kotlin-related issue. This is approximately 2 times too many. Given we're not actually relying on any key Kotlin functionality, I'm inclined to rewrite Helpers.kt in Java and avoid these problems entirely in the future.
As of early June, Briefcase Android projects fail to build, with the message:
To Reproduce
briefcase run android
with a helloworld project.Additional context
This appears to be due to the Kotlin 1.5.0 release.
Short term, increasing the
ext.kotlin_version
to "1.4.30" seems to fix the problem. Increasing to "1.5.0" fails because the Kotlin-gradle-plugin is incompatible.Longer term... this is the second time in a month that a perfectly functioning build file has stopped working because of a Kotlin-related issue. This is approximately 2 times too many. Given we're not actually relying on any key Kotlin functionality, I'm inclined to rewrite Helpers.kt in Java and avoid these problems entirely in the future.