Hi, I'm updating a project to the new kotlin 1.8.0 and got this error on some code: "Cannot generate external serializer 'UrlSerializer': class 'Url' is defined in another module" Url here is io.ktor.http
do you have multiple subprojects? Are you sure that KxS + Ktor are defined as dependencies in all relevant subprojects?
e
Eivind
01/03/2023, 6:26 AM
There are multiple sub projects (10-20). Works on 1.7.21 and the error message was not very help full in where to look. I'll did try set the dependency as a API to see if that helps but no change.
Eivind
01/03/2023, 9:37 AM
Copy code
Solved it by removing @OptIn(ExperimentalSerializationApi::class)
@Serializer(forClass = Url::class)