Hi! I'm trying to learn how to use Ktor, but I ran...
# ktor
t
Hi! I'm trying to learn how to use Ktor, but I ran into a problem. When I try to do this in
main
:
Copy code
val server = embeddedServer(Netty, port = 8080) {
	install(ContentNegotiation) {
		gson {
			setPrettyPrinting()
		}
	}
}
setPrettyPrinting()
cannot be found. I have the
io.ktor:ktor-gson
dependency installed. What's going on? (I can send code if needed) Note: I'm following this tutorial: https://ocallaghan-donal.medium.com/building-a-kotlin-back-end-in-15-minutes-5ffdbe018776