We are trying to update our app to use Kotlin 2.0....
# android
a
We are trying to update our app to use Kotlin 2.0. When building the release version, we received a warning about R8: "An error occurred when parsing Kotlin metadata." We checked https://developer.android.com/build/kotlin-support and found that there is no support for this version of Kotlin yet. Should we wait for a new R8 version that supports Kotlin 2.0?
l
You probably want to remove the dependency on R8, and use a recent AGP that will bundle a compatible R8 version.
☝️ 3
a
thanks @louiscad
Trying to update AGP from 8.1.4 to 8.2, then the warning is gone.
l
Why don't you update straight to 8.5.0?
a
We will happily update to the latest version, but when trying to go beyond 8.2, there are breaking changes. Our main goal for now is to ensure our Kotlin 2.0 compiles safely without warning.
226 Views