I’m trying to give Compose a try in my current pro...
# compose
k
I’m trying to give Compose a try in my current project and I’m facing a problem. I’m trying to use
0.1.0-dev14
version, because in the project I’m using SQLDelight also which is not ready for Kotlin 1.4. Here is the log I’m getting when trying to compile:
Copy code
e: java.lang.IllegalStateException: Backend Internal error: Exception during code generation

w: /Users/kamilh/.gradle/caches/transforms-2/files-2.1/04a413422729efc3d813c1e8dc458522/jetified-kotlin-stdlib-common-1.3.72.jar: Runtime JAR file has version 1.3 which is older than required for API version 1.4

w: /Users/kamilh/.gradle/caches/transforms-2/files-2.1/73c968e8b7f491e4cb989ea68f190ec5/jetified-kotlin-stdlib-jdk8-1.3.72.jar: Runtime JAR file has version 1.3 which is older than required for API version 1.4

w: /Users/kamilh/.gradle/caches/transforms-2/files-2.1/c8b4b27cd3b0ad6090a0f2b1484265be/jetified-kotlin-stdlib-jdk7-1.3.72.jar: Runtime JAR file has version 1.3 which is older than required for API version 1.4

w: /Users/kamilh/.gradle/caches/transforms-2/files-2.1/f52a3d8d13292768bb64d9bd79c13058/jetified-kotlin-stdlib-1.3.72.jar: Runtime JAR file has version 1.3 which is older than required for API version 1.4
I don’t understand what require 1.4 version
b
Not sure those warnings about the 1.4 version is the cause of the backend internal error
z
I think you just need to add
apiVersion = "1.3"
to your
kotlinOptions
in your gradle config.
k
Unfortunately adding
apiVersion="1.3"
didn’t help. I’m posting complete exception log
m
Are you sure you’ve updated kotlin version? I don’t remember which one was suggested for dev-14 (probably 1.4-M3), but for 15:
Copy code
//ext.kotlin_version = "1.3.72"
ext.kotlin_version = "1.4.0-rc"
k
Thank you for suggestion. I’m quite sure
0.1.0-dev14
requires 1.3.72 and only
dev15
requires 1.4 Kotlin’s version, that’s why I stayed on 14, because as I said, for example SQLDelight is not ready yet for 1.4