https://kotlinlang.org logo
Title
m

martynas

07/27/2017, 8:46 AM
Maybe someone else had same problem as me. I’m using Kotlin 1.1.3, AS 2.2.3, with latest stable KT plugin. When trying to use
takeIf
or
takeUnless
or any other function marked
@SinceKotlin("1.1")
I get message
Unresolved reference: takeIf
. Although building project works without any problems. Tried: - Reinstall plugin - Invalidate Caches / Restart - Use AS 3.0 Alpha 8 (same issue) - Use 1.1.4 eap KT plugin Not really sure what to do next?
d

dragas

07/27/2017, 11:08 AM
Are you sure you're building for api 21+?
m

martynas

07/27/2017, 1:38 PM
Why does it matter?